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 45a29eae9..65a802a2f 100644 --- a/src/passes/LogExecution.cpp +++ b/src/passes/LogExecution.cpp @@ -42,6 +42,9 @@ struct LogExecution : public WalkerPass<PostWalker<LogExecution>> { } void visitFunction(Function* curr) { + if (curr->imported()) { + return; + } curr->body = makeLogCall(curr->body); } |