diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-22 14:54:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-24 16:01:15 -0700 |
commit | 4a12b112defaa80dfb2d661793c809abd4757c0b (patch) | |
tree | e0a52562be0b95509a4ca46097927505fcc607f3 /src | |
parent | c2abbda652e2fc92e6bdd710952198ee3005653b (diff) | |
download | binaryen-4a12b112defaa80dfb2d661793c809abd4757c0b.tar.gz binaryen-4a12b112defaa80dfb2d661793c809abd4757c0b.tar.bz2 binaryen-4a12b112defaa80dfb2d661793c809abd4757c0b.zip |
fix EffectAnalyzer, blocks and loops do not branch by themselves
Diffstat (limited to 'src')
-rw-r--r-- | src/ast_utils.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h index 9336d2b3a..36895ac51 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -89,8 +89,6 @@ struct EffectAnalyzer : public PostWalker<EffectAnalyzer, Visitor<EffectAnalyzer return hasAnything(); } - void visitBlock(Block *curr) { branches = true; } - void visitLoop(Loop *curr) { branches = true; } void visitIf(If *curr) { branches = true; } void visitBreak(Break *curr) { branches = true; } void visitSwitch(Switch *curr) { branches = true; } |