summaryrefslogtreecommitdiff
path: root/src/ast_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_utils.h')
-rw-r--r--src/ast_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h
index 190b2876e..bf42d10e1 100644
--- a/src/ast_utils.h
+++ b/src/ast_utils.h
@@ -61,6 +61,7 @@ struct EffectAnalyzer : public WasmWalker<EffectAnalyzer> {
|| (accessesMemory() && (other.writesMemory || other.calls)) || (accessesLocal() && other.writesLocal);
}
+ void visitBlock(Block *curr) { branches = true; }
void visitIf(If *curr) { branches = true; }
void visitBreak(Break *curr) { branches = true; }
void visitSwitch(Switch *curr) { branches = true; }