Skip to content

Commit f3a1421

Browse files
authored
Fix maybe unused errors caused by #131527 (#132944)
1 parent 60eb89f commit f3a1421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ static Value staticallyExtractSubvector(OpBuilder &rewriter, Location loc,
247247
/// {offsets = [%offset], strides [1]}
248248
static Value staticallyInsertSubvector(OpBuilder &rewriter, Location loc,
249249
Value src, Value dest, int64_t offset) {
250-
auto srcVecTy = cast<VectorType>(src.getType());
251-
auto destVecTy = cast<VectorType>(dest.getType());
250+
[[maybe_unused]] auto srcVecTy = cast<VectorType>(src.getType());
251+
[[maybe_unused]] auto destVecTy = cast<VectorType>(dest.getType());
252252
assert(srcVecTy.getRank() == 1 && destVecTy.getRank() == 1 &&
253253
"expected source and dest to be rank-1 vector types");
254254

0 commit comments

Comments
 (0)