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(
179179 const std::vector<edge_ty> &Dependencies)
180180 : DDA(DDA) {
181181 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);
184184 }
185185 for (const edge_ty &Dep : Dependencies) {
186186 Predecessors[Dep.second ].push_back (Dep.first );
@@ -210,7 +210,7 @@ DAGDeltaAlgorithmImpl::DAGDeltaAlgorithmImpl(
210210
211211 // Invert to form the predecessor closure map.
212212 for (change_ty Change : Changes)
213- PredClosure.insert ( std::make_pair ( Change, std::set<change_ty>()) );
213+ PredClosure.try_emplace ( Change);
214214 for (change_ty Change : Changes)
215215 for (succ_closure_iterator_ty it2 = succ_closure_begin (Change),
216216 ie2 = succ_closure_end (Change);
You can’t perform that action at this time.
0 commit comments