File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ class IncludeStructure::RecordHeaders : public PPCallbacks {
75
75
IDs.push_back (HID);
76
76
}
77
77
}
78
- Out->MainFileIncludesBySpelling . try_emplace ( Inc.Written )
79
- . first -> second . push_back ( Out->MainFileIncludes .size () - 1 );
78
+ Out->MainFileIncludesBySpelling [ Inc.Written ]. push_back (
79
+ Out->MainFileIncludes .size () - 1 );
80
80
}
81
81
82
82
// Record include graph (not just for main-file includes)
Original file line number Diff line number Diff line change @@ -2282,8 +2282,7 @@ incomingCalls(const CallHierarchyItem &Item, const SymbolIndex *Index) {
2282
2282
elog (" incomingCalls failed to convert location: {0}" , Loc.takeError ());
2283
2283
return ;
2284
2284
}
2285
- auto It = CallsIn.try_emplace (R.Container , std::vector<Range>{}).first ;
2286
- It->second .push_back (Loc->range );
2285
+ CallsIn[R.Container ].push_back (Loc->range );
2287
2286
2288
2287
ContainerLookup.IDs .insert (R.Container );
2289
2288
});
You can’t perform that action at this time.
0 commit comments