Skip to content

Commit 47ec5d2

Browse files
committed
fix possible uninitialized value
1 parent 2ef7576 commit 47ec5d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Mesh/Interfaces/ShardingInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ using ShardingArrayRef = ArrayRef<SmallVector<int32_t>>;
2424
struct ShardingOption {
2525
// An array of int array. The sub-array at the i-th position signifies the
2626
// mesh axes the i-th loop will be sharded on.
27-
ShardingArray shardingArray;
28-
SymbolRefAttr cluster;
27+
ShardingArray shardingArray = {};
28+
SymbolRefAttr cluster = nullptr;
2929
// `empty` being true indicates that no sharding information can be inferred
3030
// at present. Note that it is different from the case where an operation is
3131
// not sharded.

0 commit comments

Comments
 (0)