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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h
index 3fe4ee17a..f91cfab24 100644
--- a/src/ast_utils.h
+++ b/src/ast_utils.h
@@ -22,7 +22,7 @@
namespace wasm {
-struct BreakSeeker : public PostWalker<BreakSeeker> {
+struct BreakSeeker : public PostWalker<BreakSeeker, Visitor<BreakSeeker>> {
Name target; // look for this one
size_t found;
@@ -42,7 +42,7 @@ struct BreakSeeker : public PostWalker<BreakSeeker> {
// Look for side effects, including control flow
// TODO: optimize
-struct EffectAnalyzer : public PostWalker<EffectAnalyzer> {
+struct EffectAnalyzer : public PostWalker<EffectAnalyzer, Visitor<EffectAnalyzer>> {
bool branches = false;
bool calls = false;
std::set<Index> localsRead;