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 {
7575 IDs.push_back (HID);
7676 }
7777 }
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 );
8080 }
8181
8282 // 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) {
22822282 elog (" incomingCalls failed to convert location: {0}" , Loc.takeError ());
22832283 return ;
22842284 }
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 );
22872286
22882287 ContainerLookup.IDs .insert (R.Container );
22892288 });
You can’t perform that action at this time.
0 commit comments