Skip to content

Commit 5e4df35

Browse files
gflegarlegrosbuffle
authored andcommitted
[mlir][SME] Fix unused variable warning
1 parent 8b65516 commit 5e4df35

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mlir/lib/Conversion/VectorToArmSME/VectorToArmSME.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ struct SplatOpToArmSMELowering : public OpRewritePattern<vector::SplatOp> {
332332
auto tileElementType = tileType.getElementType();
333333

334334
assert(srcType.isIntOrFloat() && "Invalid source type for vector.splat");
335+
// Avoid unused-variable warning when building without assertions.
336+
(void)srcType;
335337

336338
// First, broadcast the scalar to a 1-d vector.
337339
VectorType tileSliceType = VectorType::Builder(tileType).dropDim(0);

0 commit comments

Comments
 (0)