summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-21 16:06:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-21 16:06:33 -0700
commit07c4e7b75f91e1d332a33073838098e23befe8c4 (patch)
treeeebab6d2fbf710952c2a52535cf752516b241cf8 /src/passes/Print.cpp
parentbcfa7289f5df48f40e59542f66c0504cfae3a19b (diff)
downloadbinaryen-07c4e7b75f91e1d332a33073838098e23befe8c4.tar.gz
binaryen-07c4e7b75f91e1d332a33073838098e23befe8c4.tar.bz2
binaryen-07c4e7b75f91e1d332a33073838098e23befe8c4.zip
fix nop printing in br_table
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();
}