From 22a4b336a6ff7db1ab5b5b050c452259a3710dae Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 27 Oct 2022 23:58:22 +0000 Subject: [PATCH] [mlir][arith] Fix -Wunused-but-set-variable --- mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp b/mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp index f6b4cd0..ba05b03 100644 --- a/mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp +++ b/mlir/lib/Dialect/Vector/Utils/VectorUtils.cpp @@ -166,6 +166,7 @@ static AffineMap makePermutationMap( countInvariantIndices == numIndices - 1) && "Vectorization prerequisite violated: at most 1 index may be " "invariant wrt a vectorized loop"); + (void)countInvariantIndices; } return AffineMap::get(indices.size(), 0, perm, context); } -- 2.7.4