diff options
Diffstat (limited to 'src/passes/DeadArgumentElimination.cpp')
-rw-r--r-- | src/passes/DeadArgumentElimination.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/DeadArgumentElimination.cpp b/src/passes/DeadArgumentElimination.cpp index 43ebc6721..a20ff1fb8 100644 --- a/src/passes/DeadArgumentElimination.cpp +++ b/src/passes/DeadArgumentElimination.cpp @@ -341,7 +341,8 @@ struct DAE : public Pass { bool canRemove = std::none_of(calls.begin(), calls.end(), [&](Call* call) { auto* operand = call->operands[i]; - return EffectAnalyzer(runner->options, operand).hasSideEffects(); + return EffectAnalyzer(runner->options, module->features, operand) + .hasSideEffects(); }); if (canRemove) { // Wonderful, nothing stands in our way! Do it. |