summaryrefslogtreecommitdiff
path: root/src/passes/InstrumentLocals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/InstrumentLocals.cpp')
-rw-r--r--src/passes/InstrumentLocals.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/InstrumentLocals.cpp b/src/passes/InstrumentLocals.cpp
index 311d4a27b..bf5de644c 100644
--- a/src/passes/InstrumentLocals.cpp
+++ b/src/passes/InstrumentLocals.cpp
@@ -68,6 +68,9 @@ Name set_funcref("set_funcref");
Name set_externref("set_externref");
struct InstrumentLocals : public WalkerPass<PostWalker<InstrumentLocals>> {
+ // Adds calls to new imports.
+ bool addsEffects() override { return true; }
+
void visitLocalGet(LocalGet* curr) {
Builder builder(*getModule());
Name import;