File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,8 @@ DAGDeltaAlgorithmImpl::DAGDeltaAlgorithmImpl(
179
179
const std::vector<edge_ty> &Dependencies)
180
180
: DDA(DDA) {
181
181
for (change_ty Change : Changes) {
182
- Predecessors.insert ( std::make_pair ( Change, std::vector<change_ty>()) );
183
- Successors.insert ( std::make_pair ( Change, std::vector<change_ty>()) );
182
+ Predecessors.try_emplace ( Change);
183
+ Successors.try_emplace ( Change);
184
184
}
185
185
for (const edge_ty &Dep : Dependencies) {
186
186
Predecessors[Dep.second ].push_back (Dep.first );
@@ -210,7 +210,7 @@ DAGDeltaAlgorithmImpl::DAGDeltaAlgorithmImpl(
210
210
211
211
// Invert to form the predecessor closure map.
212
212
for (change_ty Change : Changes)
213
- PredClosure.insert ( std::make_pair ( Change, std::set<change_ty>()) );
213
+ PredClosure.try_emplace ( Change);
214
214
for (change_ty Change : Changes)
215
215
for (succ_closure_iterator_ty it2 = succ_closure_begin (Change),
216
216
ie2 = succ_closure_end (Change);
You can’t perform that action at this time.
0 commit comments