Skip to content

Commit 85b35a9

Browse files
committed
[MLIR] Fix build failure introduced by 3d04da5
Fix build failure in assert mode introduced by 8c74dc1.
1 parent 3d04da5 commit 85b35a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Affine/IR/AffineOps.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static void legalizeDemotedDims(MapOrSet &mapOrSet,
13891389

13901390
unsigned numOperands = operands.size();
13911391

1392-
assert(mapOrSet->getNumInputs() == numOperands &&
1392+
assert(mapOrSet.getNumInputs() == numOperands &&
13931393
"map/set inputs must match number of operands");
13941394

13951395
auto *context = mapOrSet.getContext();
@@ -1422,7 +1422,7 @@ static void legalizeDemotedDims(MapOrSet &mapOrSet,
14221422
mapOrSet = mapOrSet.replaceDimsAndSymbols(
14231423
/*dimReplacements=*/{}, symRemapping, oldNumDims + nextDim, nextSym);
14241424

1425-
assert(mapOrSet->getNumInputs() == operands.size() &&
1425+
assert(mapOrSet.getNumInputs() == operands.size() &&
14261426
"map/set inputs must match number of operands");
14271427
}
14281428

0 commit comments

Comments
 (0)