Skip to content

Commit ab43cf2

Browse files
committed
[mlir][mesh] Fix -Wunused-variable in Spmdization.cpp (NFC)
llvm-project/mlir/lib/Dialect/Mesh/Transforms/Spmdization.cpp:573:14: error: unused variable 'targetShardType' [-Werror,-Wunused-variable] ShapedType targetShardType = ^ 1 error generated.
1 parent 0731567 commit ab43cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Mesh/Transforms/Spmdization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ reshardOn1DMesh(ImplicitLocOpBuilder &builder, ClusterOp mesh,
570570
TypedValue<ShapedType> sourceShard) {
571571
assert(sourceShard.getType() ==
572572
shardShapedType(sourceUnshardedValue.getType(), mesh, sourceSharding));
573-
ShapedType targetShardType =
573+
[[maybe_unused]] ShapedType targetShardType =
574574
shardShapedType(sourceUnshardedValue.getType(), mesh, targetSharding);
575575
assert(sourceShard.getType().getRank() == targetShardType.getRank());
576576
assert(mesh.getRank() == 1 && "Only 1D meshes are currently supported.");

0 commit comments

Comments
 (0)