From 547abdd921e45fd65a2fa60f21715facb4af31b2 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Tue, 14 Jan 2020 10:07:51 +0100 Subject: [PATCH] [mlir] Fix -Wunused --- mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp index 835afce..a8be9b2 100644 --- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp +++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp @@ -482,8 +482,8 @@ unsigned getMaxPosOfType(ArrayRef> exprArrays) { static SmallVector getSymbolLessAffineMaps(ArrayRef> reassociation) { unsigned maxDim = getMaxPosOfType(reassociation); - unsigned maxSym = getMaxPosOfType(reassociation); - assert(maxSym == 0 && "Expected symbol-less expressions"); + assert(getMaxPosOfType(reassociation) == 0 && + "Expected symbol-less expressions"); SmallVector maps; maps.reserve(reassociation.size()); for (auto exprs : reassociation) -- 2.7.4