Skip to content

Commit b443992

Browse files
committed
[mlir] Fix -Wsign-compare in NVGPUDialect.cpp (NFC)
/llvm-project/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp:396:31: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Werror,-Wsign-compare] if (getCoordinates().size() != ~~~~~~~~~~~~~~~~~~~~~~~ ^ 1 error generated.
1 parent e397a46 commit b443992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ LogicalResult TmaAsyncLoadOp::verify() {
394394
<< " coordinates are supported.";
395395
}
396396
if (getCoordinates().size() !=
397-
getTensorMapDescriptor().getType().getTensor().getRank()) {
397+
size_t(getTensorMapDescriptor().getType().getTensor().getRank())) {
398398
return emitError() << "number of coordinates do not match with the rank of "
399399
"tensor descriptor map.";
400400
}

0 commit comments

Comments
 (0)