forked from OSchip/llvm-project
Try to fix buildbots
It seems not all of our bots have a std::vector::erase() taking a const_iterator (even though that seems to be part of C++11) attempt to workaround. llvm-svn: 304349
This commit is contained in:
parent
89918caaa7
commit
e2e65911a2
|
@ -352,7 +352,9 @@ void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) {
|
|||
|
||||
MachineBasicBlock::livein_iterator
|
||||
MachineBasicBlock::removeLiveIn(MachineBasicBlock::livein_iterator I) {
|
||||
return LiveIns.erase(I);
|
||||
// Get non-const version of iterator.
|
||||
LiveInVector::iterator LI = LiveIns.begin() + (I - LiveIns.begin());
|
||||
return LiveIns.erase(LI);
|
||||
}
|
||||
|
||||
bool MachineBasicBlock::isLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) const {
|
||||
|
|
Loading…
Reference in New Issue