Skip to content

Commit 72455b3

Browse files
committed
[mlir][sparse] Fixing -Wunused-variable in Sparsification.cpp
Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D146474
1 parent c1e4a0d commit 72455b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,9 @@ static bool computeIterationGraph(CodegenEnv &env, SortMask mask,
762762
// Iterate over the indexing maps of every tensor in the tensor expression.
763763
for (OpOperand &t : env.op()->getOpOperands()) {
764764
// Get map and encoding.
765-
const auto map = env.op().getMatchingIndexingMap(&t);
766765
const auto enc = getSparseTensorEncoding(t.get().getType());
767-
assert(map.getNumDims() + getNumNonTrivialIdxExpOnSparseLvls(env.op()) ==
766+
assert(env.op().getMatchingIndexingMap(&t).getNumDims() +
767+
getNumNonTrivialIdxExpOnSparseLvls(env.op()) ==
768768
n);
769769

770770
// Skips dense inputs/outputs when not requested.

0 commit comments

Comments
 (0)