diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-08-12 04:32:37 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-08-12 04:32:37 +0000 |
commit | 5d08e375abfb7fd1973e3c9335d7b880fdd7b4a8 (patch) | |
tree | 2b8fae93e8f4f390fd87feb52ca126a39edfc8c2 /lib/CodeGen/LiveInterval.cpp | |
parent | 33ebfce23741b3bc924a2a9d3c33622a487181b3 (diff) |
Use the range variant of remove_if instead of unpacking begin/end
No functionality change is intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 93c5ca785ac..df26ce6046a 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/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. |