Skip to content

Commit 7d4fe20

Browse files
author
Peiming Liu
committed
fix build error
1 parent ead66c8 commit 7d4fe20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/Utils/SparseTensorLevel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,11 @@ class NonEmptySubSectIterator : public SparseIterator {
574574

575575
void locate(OpBuilder &b, Location l, Value crd) override {
576576
Value absOff = crd;
577-
auto *p = dyn_cast_or_null<NonEmptySubSectIterator>(parent);
577+
578578
if (isSubSectRoot())
579579
delegate->locate(b, l, absOff);
580580
else
581-
assert(p->lvl + 1 == lvl);
581+
assert(parent->lvl + 1 == lvl);
582582

583583
seek(ValueRange{absOff, absOff, C_TRUE});
584584
updateCrd(crd);

0 commit comments

Comments
 (0)