Skip to content

Commit fedac3b

Browse files
[mlir] Fix warnings
This patch fixes: mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp:331:8: error: unused variable 'srcVecTy' [-Werror,-Wunused-variable] mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp:332:8: error: unused variable 'destVecTy' [-Werror,-Wunused-variable]
1 parent 6aed161 commit fedac3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ static Value dynamicallyInsertSubVector(RewriterBase &rewriter, Location loc,
332332
auto destVecTy = cast<VectorType>(dest.getType());
333333
assert(srcVecTy.getRank() == 1 && destVecTy.getRank() == 1 &&
334334
"expected source and dest to be rank-1 vector types");
335+
(void)srcVecTy;
336+
(void)destVecTy;
335337
assert(numElemsToInsert > 0 &&
336338
"the number of elements to insert must be greater than 0");
337339
// NOTE: We are unable to take the offset into account in the following

0 commit comments

Comments
 (0)