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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Mar 25 08:26:56 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Karlo Basioli (basioli-k)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/132944.diff


1 Files Affected:

- (modified) mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp (+2-2) 


``````````diff
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");
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/132944


More information about the Mlir-commits mailing list