summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-08-02 21:21:44 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-07 09:54:52 -0700
commit1cc33903a0b1b9dddd40674d792a59ee0d1bccf7 (patch)
tree28e9dc13c5e7531f2c2801601cddf09283a39a24 /src/passes/Print.cpp
parent9d27d6818f83308c4853e3d8870d5b88a374453f (diff)
downloadbinaryen-1cc33903a0b1b9dddd40674d792a59ee0d1bccf7.tar.gz
binaryen-1cc33903a0b1b9dddd40674d792a59ee0d1bccf7.tar.bz2
binaryen-1cc33903a0b1b9dddd40674d792a59ee0d1bccf7.zip
it is not cool to return a nop
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index ac349abc7..4f6baa9da 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -481,7 +481,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
}
void visitReturn(Return *curr) {
printOpening(o, "return");
- if (!curr->value || curr->value->is<Nop>()) {
+ if (!curr->value) {
// avoid a new line just for the parens
o << ')';
return;