Skip to content

Commit a8d9378

Browse files
[mlir] Fix a warning
This patch fixes: llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:1855:17: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
1 parent b5626ae commit a8d9378

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
@@ -1852,7 +1852,7 @@ LogicalResult BroadcastOp::verify() {
18521852
auto inputShape = inputType.getShape();
18531853
auto initShape = initType.getShape();
18541854

1855-
if (inputRank != dimensionsRef.size())
1855+
if ((size_t)inputRank != dimensionsRef.size())
18561856
return emitOpError()
18571857
<< "input rank does match the number of dimensions. expected: "
18581858
<< inputRank << ", got: " << dimensionsRef.size();

0 commit comments

Comments
 (0)