diff options
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeCalc.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveRangeCalc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeCalc.cpp b/llvm/lib/CodeGen/LiveRangeCalc.cpp index e9c9b70d29a9..3ef28042acb0 100644 --- a/llvm/lib/CodeGen/LiveRangeCalc.cpp +++ b/llvm/lib/CodeGen/LiveRangeCalc.cpp @@ -158,8 +158,7 @@ bool LiveRangeCalc::isDefOnEntry(LiveRange &LR, ArrayRef<SlotIndex> Undefs, // If LR has a segment S that starts at the next block, i.e. [End, ...), // std::upper_bound will return the segment following S. Instead, // S should be treated as the first segment that does not overlap B. - LiveRange::iterator UB = std::upper_bound(LR.begin(), LR.end(), - End.getPrevSlot()); + LiveRange::iterator UB = upper_bound(LR, End.getPrevSlot()); if (UB != LR.begin()) { LiveRange::Segment &Seg = *std::prev(UB); if (Seg.end > Begin) { |
