summaryrefslogtreecommitdiff
path: root/src/ir/effects.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r--src/ir/effects.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h
index 98687c0dc..8919c6da4 100644
--- a/src/ir/effects.h
+++ b/src/ir/effects.h
@@ -176,13 +176,13 @@ struct EffectAnalyzer : public PostWalker<EffectAnalyzer> {
}
}
- void visitCall(Call *curr) { calls = true; }
- void visitCallImport(CallImport *curr) {
+ void visitCall(Call *curr) {
calls = true;
if (debugInfo) {
// debugInfo call imports must be preserved very strongly, do not
// move code around them
- branches = true; // !
+ // FIXME: we could check if the call is to an import
+ branches = true;
}
}
void visitCallIndirect(CallIndirect *curr) { calls = true; }