[mlir][sparse] fix signed/unsigned warning

Reviewed By: wrengr

Differential Revision: https://reviews.llvm.org/D134760
This commit is contained in:
Aart Bik
2022-09-27 13:11:16 -07:00
parent e80e134c77
commit 1379596e9d

View File

@@ -517,7 +517,7 @@ LogicalResult SortOp::verify() {
bool checkEleType = true) -> LogicalResult {
for (Value opnd : operands) {
MemRefType mtp = opnd.getType().cast<MemRefType>();
uint64_t dim = mtp.getShape()[0];
int64_t dim = mtp.getShape()[0];
// We can't check the size of dynamic dimension at compile-time, but all
// xs and ys should have a dimension not less than n at runtime.
if (n && dim != ShapedType::kDynamicSize && dim < n.value())