Skip to content

Commit 9049f11

Browse files
committed
nit
1 parent 137f96c commit 9049f11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Conversion/Normalize/Normalize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ void NormalizePass::collectOutputOperations(
394394
/// - Terminator operations are outputs
395395
/// - Any operation that implements MemoryEffectOpInterface and reports at
396396
/// least one MemoryEffects::Write effect is an output
397-
/// - func::CallOp is treated as an output (calls are conservatively assumed to
398-
/// possibly produce side effects).
397+
/// - Any operation that implements CallOpInterface is treated as an output
398+
/// (calls are conservatively assumed to possibly produce side effects).
399399
bool NormalizePass::isOutput(Operation &op) const noexcept {
400400
if (op.hasTrait<OpTrait::IsTerminator>())
401401
return true;
@@ -408,7 +408,7 @@ bool NormalizePass::isOutput(Operation &op) const noexcept {
408408
return true;
409409
}
410410

411-
if (auto call = dyn_cast<func::CallOp>(op))
411+
if (dyn_cast<CallOpInterface>(&op))
412412
return true;
413413

414414
return false;

0 commit comments

Comments
 (0)