[Mlir-commits] [mlir] f3a1421 - Fix maybe unused errors caused by #131527 (#132944)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Mar 25 08:26:27 PDT 2025
Author: Karlo Basioli
Date: 2025-03-25T15:26:21Z
New Revision: f3a14217a995e5b086dea3677edb43e48e6b1af2
URL: https://github.com/llvm/llvm-project/commit/f3a14217a995e5b086dea3677edb43e48e6b1af2
DIFF: https://github.com/llvm/llvm-project/commit/f3a14217a995e5b086dea3677edb43e48e6b1af2.diff
LOG: Fix maybe unused errors caused by #131527 (#132944)
Added:
Modified:
mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
Removed:
################################################################################
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