diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-01-14 10:07:51 +0100 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-01-14 10:07:51 +0100 |
commit | 547abdd921e45fd65a2fa60f21715facb4af31b2 (patch) | |
tree | 1237ce4d39c2136bf8f90df7fd78051dc343774e | |
parent | f18370fe0e7576fb9947e49d66f7a6962c6822ce (diff) | |
download | bcm5719-llvm-547abdd921e45fd65a2fa60f21715facb4af31b2.tar.gz bcm5719-llvm-547abdd921e45fd65a2fa60f21715facb4af31b2.zip |
[mlir] Fix -Wunused
-rw-r--r-- | mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp index 835afceb8f2..a8be9b20b44 100644 --- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp +++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp @@ -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) |