From fb79ff6ab5b79238cc41bd622c139916762631be Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 12 Apr 2019 11:31:16 +0000 Subject: Use llvm::upper_bound. NFC llvm-svn: 358277 --- llvm/lib/CodeGen/LiveInterval.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/LiveInterval.cpp') diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 3dc030303a0..70b2a77fe80 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -296,9 +296,7 @@ private: iterator find(SlotIndex Pos) { return LR->find(Pos); } - iterator findInsertPos(Segment S) { - return std::upper_bound(LR->begin(), LR->end(), S.start); - } + iterator findInsertPos(Segment S) { return llvm::upper_bound(*LR, S.start); } }; //===----------------------------------------------------------------------===// -- cgit v1.2.3