Skip to content

Commit 13e60f3

Browse files
authored
[MLIR] Apply clang-tidy fixes for readability-container-size-empty in XeGPUOps.cpp (NFC) (llvm#156752)
1 parent 15e9306 commit 13e60f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
249249
llvm::ArrayRef<OpFoldResult> offsets,
250250
llvm::ArrayRef<OpFoldResult> shape,
251251
llvm::ArrayRef<OpFoldResult> strides) {
252-
assert(shape.size() && offsets.size() && strides.size() &&
252+
assert(!shape.empty() && !offsets.empty() && !strides.empty() &&
253253
shape.size() == strides.size() && shape.size() == offsets.size());
254254

255255
Type srcTy = source.getType();

0 commit comments

Comments
 (0)