summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-21 19:01:47 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-21 19:01:47 -0700
commita180c863ac4b6882f47e5e05ceeebe94b1208a7d (patch)
treed1e5591a6075f67359f792438f848cd15e834bc9 /src/passes/Print.cpp
parent7b180b286a3df1a231454399869516ae8571d9bb (diff)
parent171668684ad91dc8d397ef411ce5fd337bc7a976 (diff)
downloadbinaryen-a180c863ac4b6882f47e5e05ceeebe94b1208a7d.tar.gz
binaryen-a180c863ac4b6882f47e5e05ceeebe94b1208a7d.tar.bz2
binaryen-a180c863ac4b6882f47e5e05ceeebe94b1208a7d.zip
Merge pull request #377 from WebAssembly/zero_x_b
More 0xb work
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 59ade1c76..bb89b2720 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -181,9 +181,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
}
o << " " << curr->default_;
incIndent();
- if (curr->value) {
- printFullLine(curr->value);
- }
+ if (curr->value && !curr->value->is<Nop>()) printFullLine(curr->value);
printFullLine(curr->condition);
decIndent();
}