forked from OSchip/llvm-project
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. llvm-svn: 245900
This commit is contained in:
parent
4104337d9d
commit
1b50bb58a1
|
@ -323,7 +323,8 @@ void MachineBasicBlock::printAsOperand(raw_ostream &OS,
|
||||||
}
|
}
|
||||||
|
|
||||||
void MachineBasicBlock::removeLiveIn(unsigned Reg) {
|
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())
|
if (I != LiveIns.end())
|
||||||
LiveIns.erase(I);
|
LiveIns.erase(I);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue