[mlir][sparse] Fix windows build.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D137210
This commit is contained in:
bixia1 2022-11-01 16:55:24 -07:00
parent 6dda497942
commit 3e724e529b
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ private:
uint64_t rank = dstTp.getRank();
// Gather the indices-arrays in the dst tensor storage order.
SmallVector<Value, 4> xs(rank, Value());
for (int64_t i = 0; i < rank; i++) {
for (uint64_t i = 0; i < rank; i++) {
uint64_t orgDim = toOrigDim(encSrc, i);
xs[toStoredDim(encDst, orgDim)] = rewriter.create<ToIndicesOp>(
loc, indTp, src, rewriter.getIndexAttr(orgDim));