diff options
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index b9da975..fb688a2 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -918,7 +918,7 @@ public: // Move set of active variables from one location to another. auto MovingVars = ActiveMLocs[Src]; - ActiveMLocs[Dst].insert(MovingVars.begin(), MovingVars.end()); + ActiveMLocs[Dst].insert_range(MovingVars); VarLocs[Dst.asU64()] = VarLocs[Src.asU64()]; // For each variable based on Src; create a location at Dst. @@ -2581,7 +2581,7 @@ void InstrRefBasedLDV::placeMLocPHIs( continue; } - RegUnitsToPHIUp.insert(FoundRegUnits.begin(), FoundRegUnits.end()); + RegUnitsToPHIUp.insert_range(FoundRegUnits); } // Lambda to fetch PHIs for a given location, and write into the PHIBlocks @@ -3087,7 +3087,7 @@ void InstrRefBasedLDV::getBlocksForScope( // VarLoc LiveDebugValues tracks variable locations that are defined in // blocks not in scope. This is something we could legitimately ignore, but // lets allow it for now for the sake of coverage. - BlocksToExplore.insert(AssignBlocks.begin(), AssignBlocks.end()); + BlocksToExplore.insert_range(AssignBlocks); // Storage for artificial blocks we intend to add to BlocksToExplore. DenseSet<const MachineBasicBlock *> ToAdd; @@ -3137,7 +3137,7 @@ void InstrRefBasedLDV::getBlocksForScope( } }; - BlocksToExplore.insert(ToAdd.begin(), ToAdd.end()); + BlocksToExplore.insert_range(ToAdd); } void InstrRefBasedLDV::buildVLocValueMap( |