summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-09 18:59:05 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-09 18:59:05 -0800
commit9c6476efe9403658bb69851bfa3aa30f67a32868 (patch)
tree749e71a421c1fbf46f31070e11856163c4832960 /src/wasm.h
parent884c1de0f6dd282881029f03525c1bc8b93c134c (diff)
downloadbinaryen-9c6476efe9403658bb69851bfa3aa30f67a32868.tar.gz
binaryen-9c6476efe9403658bb69851bfa3aa30f67a32868.tar.bz2
binaryen-9c6476efe9403658bb69851bfa3aa30f67a32868.zip
update spec tests, use a proper label stack, and start to update control flow changes from spec
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 0fd014a47..2a7a9b804 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -338,11 +338,11 @@ public:
std::ostream& doPrint(std::ostream &o, unsigned indent) {
printOpening(o, "loop");
- if (out.is()) {
- o << ' ' << out;
- if (in.is()) {
- o << ' ' << in;
- }
+ if (in.is()) {
+ o << ' ' << in;
+ if (out.is()) {
+ o << ' ' << out;
+ }
}
incIndent(o, indent);
printFullLine(o, indent, body);