const Dimension dimRank = dstTp.getDimRank();
// This assertion should be guaranteed by validity of the op,
// but just for paranoia's sake.
- assert(srcRTT.getRank() == dimRank);
+ assert(static_cast<Dimension>(srcRTT.getRank()) == dimRank);
SmallVector<Value> srcSizes;
sizesForTensor(rewriter, srcSizes, loc, srcRTT, src);
srcRTT =
getUnorderedCOOFromTypeWithOrdering(srcRTT, dstTp.getDimToLvlMap());
// Ensure that mutating `srcRTT` didn't invalidate `dimRank`.
- assert(srcRTT.getRank() == dimRank);
+ assert(static_cast<Dimension>(srcRTT.getRank()) == dimRank);
tmpCoo = rewriter
.create<AllocTensorOp>(loc, srcRTT, dynSrcSizes, Value(),
/*sizeHint=*/nnz, Attribute())
annotated = true;
const Level lvlRank = map.getNumResults();
assert(!enc || lvlRank == enc.getLvlRank());
- assert(env.op().getRank(&t) == lvlRank);
+ assert(static_cast<Level>(env.op().getRank(&t)) == lvlRank);
for (Level l = 0; l < lvlRank; l++) {
const unsigned tensor = t.getOperandNumber();
// FIXME: `toOrigDim` is deprecated.