Skip to content

Commit 88a5c80

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [mlir] Fix a warning
This patch fixes: mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp:1544:14: error: unused variable 'destType' [-Werror,-Wunused-variable]
2 parents 7ddba13 + 93f19cb commit 88a5c80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,7 @@ createWriteOrMaskedWrite(OpBuilder &builder, Location loc, Value vectorToStore,
15451545
assert(cast<VectorType>(vectorToStore.getType()).getRank() ==
15461546
static_cast<int64_t>(destType.getRank()) &&
15471547
"Rank mismatch!");
1548+
(void)destType;
15481549

15491550
int64_t rank = cast<ShapedType>(dest.getType()).getRank();
15501551
auto destShape = cast<ShapedType>(dest.getType()).getShape();

0 commit comments

Comments
 (0)