Skip to content

Commit f016461

Browse files
joker-ephmahesh-attarde
authored andcommitted
[MLIR] Apply clang-tidy fixes for modernize-use-emplace in ShardingPropagation.cpp (NFC)
1 parent 45ebde4 commit f016461

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Shard/Transforms/ShardingPropagation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ getOrderedPossibleShardingAttrs(ArrayRef<Sharding> mustShardings,
128128
curShardingAttrs.push_back(optionalShardings[i]);
129129
dfsCreateShardingAttrs(i + 1);
130130
curShardingAttrs.pop_back();
131-
curShardingAttrs.push_back({});
131+
curShardingAttrs.emplace_back();
132132
dfsCreateShardingAttrs(i + 1);
133133
curShardingAttrs.pop_back();
134134
return;
135135
}
136136

137-
curShardingAttrs.push_back({});
137+
curShardingAttrs.emplace_back();
138138
dfsCreateShardingAttrs(i + 1);
139139
curShardingAttrs.pop_back();
140140
};

0 commit comments

Comments
 (0)