Skip to content

Commit 9e86c0d

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in LinalgOps.cpp (NFC)
1 parent c6a79a5 commit 9e86c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ LogicalResult TransposeOp::fold(FoldAdaptor adaptor,
20912091
return failure();
20922092

20932093
// Single dimension transpose.
2094-
if (getPermutation().size() == 0) {
2094+
if (getPermutation().empty()) {
20952095
result.push_back(getInput());
20962096
return success();
20972097
}

0 commit comments

Comments
 (0)