summaryrefslogtreecommitdiff
path: root/src/passes/LogExecution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LogExecution.cpp')
-rw-r--r--src/passes/LogExecution.cpp3
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);
}