summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai (kripken) <alonzakai@gmail.com>2017-07-13 10:31:28 -0700
committerAlon Zakai (kripken) <alonzakai@gmail.com>2017-07-13 11:54:03 -0700
commit29cf8735b0a0dd1cd6640e27206f2e2ac78503c1 (patch)
tree626cf50c3e0711945cced649f120c2a1cf3919c9 /src
parentf755250db869781db4206eee8db00c8060ac398b (diff)
downloadbinaryen-29cf8735b0a0dd1cd6640e27206f2e2ac78503c1.tar.gz
binaryen-29cf8735b0a0dd1cd6640e27206f2e2ac78503c1.tar.bz2
binaryen-29cf8735b0a0dd1cd6640e27206f2e2ac78503c1.zip
note changes when removing an if body in vacuum
Diffstat (limited to 'src')
-rw-r--r--src/passes/Vacuum.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/Vacuum.cpp b/src/passes/Vacuum.cpp
index 0178a794d..3f27fb36a 100644
--- a/src/passes/Vacuum.cpp
+++ b/src/passes/Vacuum.cpp
@@ -234,6 +234,10 @@ struct Vacuum : public WalkerPass<PostWalker<Vacuum>> {
}
// if the condition is unreachable, just return it
if (curr->condition->type == unreachable) {
+ typeUpdater.noteRecursiveRemoval(curr->ifTrue);
+ if (curr->ifFalse) {
+ typeUpdater.noteRecursiveRemoval(curr->ifFalse);
+ }
replaceCurrent(curr->condition);
return;
}