diff options
Diffstat (limited to 'src/passes/LogExecution.cpp')
-rw-r--r-- | src/passes/LogExecution.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/LogExecution.cpp b/src/passes/LogExecution.cpp index 63ada5819..1b90842bc 100644 --- a/src/passes/LogExecution.cpp +++ b/src/passes/LogExecution.cpp @@ -39,6 +39,9 @@ namespace wasm { Name LOGGER("log_execution"); struct LogExecution : public WalkerPass<PostWalker<LogExecution>> { + // Adds calls to new imports. + bool addsEffects() override { return true; } + void visitLoop(Loop* curr) { curr->body = makeLogCall(curr->body); } void visitReturn(Return* curr) { replaceCurrent(makeLogCall(curr)); } |