Skip to content

Commit acce3b8

Browse files
authored
[mlir] Mark variable as maybe_unused.
1 parent a1826b4 commit acce3b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Dialect/Mesh/IR/MeshOps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ void mlir::mesh::maybeInsertSourceShardingAnnotation(MeshSharding sharding,
334334
Operation *operandSrcOp = operandValue.getDefiningOp();
335335
bool isBlockArg = !operandSrcOp;
336336
{
337-
auto opType = dyn_cast<mlir::RankedTensorType>(operandValue.getType());
337+
[[maybe_unused]] auto opType =
338+
dyn_cast<mlir::RankedTensorType>(operandValue.getType());
338339
assert(!opType || opType.getRank() > 0 || isFullReplication(sharding));
339340
}
340341
if (!isa<RankedTensorType>(operandValue.getType()) && operandSrcOp &&

0 commit comments

Comments
 (0)