summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-12 11:31:16 +0000
committerFangrui Song <maskray@google.com>2019-04-12 11:31:16 +0000
commitfb79ff6ab5b79238cc41bd622c139916762631be (patch)
tree2d05300d262eb2569ca3c5ccc9bf4f72670eff30 /llvm/lib/CodeGen/LiveInterval.cpp
parenteb312ddfdf81f53d727d1c456514bd45d8293f0e (diff)
downloadbcm5719-llvm-fb79ff6ab5b79238cc41bd622c139916762631be.tar.gz
bcm5719-llvm-fb79ff6ab5b79238cc41bd622c139916762631be.zip
Use llvm::upper_bound. NFC
llvm-svn: 358277
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp4
1 files changed, 1 insertions, 3 deletions
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); }
};
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud