Skip to content

Commit 43769d2

Browse files
joker-ephaadeshps-mcw
authored andcommitted
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in ShardOps.cpp (NFC)
1 parent 17735fd commit 43769d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Shard/IR/ShardOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ LogicalResult ShardingOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
576576
return failure();
577577
}
578578
if (mlir::ShapedType::isDynamicShape(grid->getShape()) &&
579-
getStaticShardedDimsOffsets().size() > 0) {
579+
!getStaticShardedDimsOffsets().empty()) {
580580
return emitError() << "sharded dims offsets are not allowed for "
581581
"device grids with dynamic shape.";
582582
}

0 commit comments

Comments
 (0)