Skip to content

Commit 7d47e06

Browse files
joker-ephaadeshps-mcw
authored andcommitted
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in AffineOps.cpp (NFC)
1 parent 48b044c commit 7d47e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Affine/IR/AffineOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5421,7 +5421,7 @@ struct DropLinearizeUnitComponentsIfDisjointOrZero final
54215421
return rewriter.notifyMatchFailure(op,
54225422
"no unit basis entries to replace");
54235423

5424-
if (newIndices.size() == 0) {
5424+
if (newIndices.empty()) {
54255425
rewriter.replaceOpWithNewOp<arith::ConstantIndexOp>(op, 0);
54265426
return success();
54275427
}

0 commit comments

Comments
 (0)