Skip to content

Commit 0574062

Browse files
Update mlir/lib/Transforms/RemoveDeadValues.cpp
Co-authored-by: Andrzej Warzyński <[email protected]>
1 parent 8d2e629 commit 0574062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Transforms/RemoveDeadValues.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ static void cleanUpDeadVals(RDVFinalCleanupList &list) {
705705

706706
// 4. Operands
707707
for (auto &o : list.operands) {
708-
if (o.nonLive.size() > 0)
708+
if (o.op->getNumOperands() > 0)
709709
o.op->eraseOperands(o.nonLive);
710710
}
711711

0 commit comments

Comments
 (0)