Skip to content

Commit 39247a8

Browse files
committed
Addressed upstream comment
Change-Id: I02495c6cf2d67fcf7e0d266c8b51c661e759a3f4
1 parent a0d8c51 commit 39247a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static bool resultIsNotRead(Operation *op, std::vector<Operation *> &uses) {
141141
for (OpOperand &use : op->getUses()) {
142142
Operation *useOp = use.getOwner();
143143
// Use escaped the scope
144-
if (useOp->hasTrait<mlir::OpTrait::ReturnLike>())
144+
if (useOp->mightHaveTrait<OpTrait::IsTerminator>())
145145
return false;
146146
if (isa<memref::DeallocOp>(useOp) ||
147147
(useOp->getNumResults() == 0 && useOp->getNumRegions() == 0 &&

0 commit comments

Comments
 (0)