forked from OSchip/llvm-project
Fix opt build where compiled out assert leaves unused local variable.
PiperOrigin-RevId: 211631896
This commit is contained in:
parent
95f31d53d5
commit
f884e8da82
|
@ -38,9 +38,8 @@ static AffineExpr *toAffineExpr(ArrayRef<int64_t> eq, unsigned numDims,
|
|||
unsigned numSymbols,
|
||||
ArrayRef<AffineExpr *> localExprs,
|
||||
MLIRContext *context) {
|
||||
unsigned numLocals = eq.size() - numDims - numSymbols - 1;
|
||||
|
||||
assert(numLocals == localExprs.size() &&
|
||||
// Assert expected numLocals = eq.size() - numDims - numSymbols - 1
|
||||
assert(eq.size() - numDims - numSymbols - 1 == localExprs.size() &&
|
||||
"unexpected number of local expressions");
|
||||
|
||||
AffineExpr *expr = AffineConstantExpr::get(0, context);
|
||||
|
|
Loading…
Reference in New Issue