diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-21 16:06:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-21 16:06:33 -0700 |
commit | 07c4e7b75f91e1d332a33073838098e23befe8c4 (patch) | |
tree | eebab6d2fbf710952c2a52535cf752516b241cf8 /src | |
parent | bcfa7289f5df48f40e59542f66c0504cfae3a19b (diff) | |
download | binaryen-07c4e7b75f91e1d332a33073838098e23befe8c4.tar.gz binaryen-07c4e7b75f91e1d332a33073838098e23befe8c4.tar.bz2 binaryen-07c4e7b75f91e1d332a33073838098e23befe8c4.zip |
fix nop printing in br_table
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/Print.cpp | 4 |
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(); } |