diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-08 10:19:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-08 10:19:20 -0800 |
commit | 92ac805edc6ebe06e5ad850c8a03202bd1a7f397 (patch) | |
tree | e5de0747143cb108cb8a3ebe73c2c90719036a70 /src/wasm.h | |
parent | 01363d0daeb33c93a166ae00ed5e9791d7de8f9f (diff) | |
download | binaryen-92ac805edc6ebe06e5ad850c8a03202bd1a7f397.tar.gz binaryen-92ac805edc6ebe06e5ad850c8a03202bd1a7f397.tar.bz2 binaryen-92ac805edc6ebe06e5ad850c8a03202bd1a7f397.zip |
switch fixes
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index 6eee9d8a2..38a08a27e 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -377,7 +377,8 @@ public: } std::ostream& doPrint(std::ostream &o, unsigned indent) { - printOpening(o, "switch ") << name; + printOpening(o, "switch "); + if (name.is()) o << name; incIndent(o, indent); printFullLine(o, indent, value); doIndent(o, indent) << "[ "; |