summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-12 04:32:37 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-12 04:32:37 +0000
commitc700490f485f78e1d6d1b6577d17ef76066bcf1f (patch)
treecb801fcb9b78b8803a9753f4333a0baaf96643a2 /llvm/lib/CodeGen/LiveInterval.cpp
parent0da5afe7172f254226c63f8dcb92d6729d02b959 (diff)
downloadbcm5719-llvm-c700490f485f78e1d6d1b6577d17ef76066bcf1f.tar.gz
bcm5719-llvm-c700490f485f78e1d6d1b6577d17ef76066bcf1f.zip
Use the range variant of remove_if instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278475
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 93c5ca785ac..df26ce6046a 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -571,7 +571,7 @@ void LiveRange::removeSegment(SlotIndex Start, SlotIndex End,
/// Also remove the value# from value# list.
void LiveRange::removeValNo(VNInfo *ValNo) {
if (empty()) return;
- segments.erase(std::remove_if(begin(), end(), [ValNo](const Segment &S) {
+ segments.erase(remove_if(*this, [ValNo](const Segment &S) {
return S.valno == ValNo;
}), end());
// Now that ValNo is dead, remove it.
OpenPOWER on IntegriCloud