[Mlir-commits] [mlir] Fix maybe unused errors caused by #131527 (PR #132944)

Karlo Basioli llvmlistbot at llvm.org
Tue Mar 25 08:26:21 PDT 2025


https://github.com/basioli-k created https://github.com/llvm/llvm-project/pull/132944

None

>From ce23956354669a9c7d66f95c0f383c5c24796c3e Mon Sep 17 00:00:00 2001
From: basioli-k <k.basioli at gmail.com>
Date: Tue, 25 Mar 2025 15:25:47 +0000
Subject: [PATCH] Fix maybe unused errors caused by 131527

---
 .../lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
index 57d1d9bcadf60..5debebd3218ed 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -247,8 +247,8 @@ static Value staticallyExtractSubvector(OpBuilder &rewriter, Location loc,
 ///     {offsets = [%offset], strides [1]}
 static Value staticallyInsertSubvector(OpBuilder &rewriter, Location loc,
                                        Value src, Value dest, int64_t offset) {
-  auto srcVecTy = cast<VectorType>(src.getType());
-  auto destVecTy = cast<VectorType>(dest.getType());
+  [[maybe_unused]] auto srcVecTy = cast<VectorType>(src.getType());
+  [[maybe_unused]] auto destVecTy = cast<VectorType>(dest.getType());
   assert(srcVecTy.getRank() == 1 && destVecTy.getRank() == 1 &&
          "expected source and dest to be rank-1 vector types");
 



More information about the Mlir-commits mailing list