[mlir] Fix -Wunused

This commit is contained in:
Sam McCall 2020-01-14 10:07:51 +01:00
parent f18370fe0e
commit 547abdd921
1 changed files with 2 additions and 2 deletions

View File

@ -482,8 +482,8 @@ unsigned getMaxPosOfType(ArrayRef<ArrayRef<AffineExpr>> exprArrays) {
static SmallVector<AffineMap, 4>
getSymbolLessAffineMaps(ArrayRef<ArrayRef<AffineExpr>> reassociation) {
unsigned maxDim = getMaxPosOfType<AffineDimExpr>(reassociation);
unsigned maxSym = getMaxPosOfType<AffineSymbolExpr>(reassociation);
assert(maxSym == 0 && "Expected symbol-less expressions");
assert(getMaxPosOfType<AffineSymbolExpr>(reassociation) == 0 &&
"Expected symbol-less expressions");
SmallVector<AffineMap, 4> maps;
maps.reserve(reassociation.size());
for (auto exprs : reassociation)