[llvm] r245900 - Try to fix buildbots
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 16:30:39 PDT 2015
Author: matze
Date: Mon Aug 24 18:30:39 2015
New Revision: 245900
URL: http://llvm.org/viewvc/llvm-project?rev=245900&view=rev
Log:
Try to fix buildbots
Apparently std::vector::erase(const_iterator) (as opposed to the
non-const iterator) is a part of C++11 but it seems this is not available
on all the buildbots.
Modified:
llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=245900&r1=245899&r2=245900&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Mon Aug 24 18:30:39 2015
@@ -323,7 +323,8 @@ void MachineBasicBlock::printAsOperand(r
}
void MachineBasicBlock::removeLiveIn(unsigned Reg) {
- livein_iterator I = std::find(livein_begin(), livein_end(), Reg);
+ std::vector<unsigned>::iterator I
+ = std::find(LiveIns.begin(), LiveIns.end(), Reg);
if (I != LiveIns.end())
LiveIns.erase(I);
}
More information about the llvm-commits
mailing list