From: Matthias Braun Date: Mon, 24 Aug 2015 23:30:39 +0000 (+0000) Subject: Try to fix buildbots X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e11e167a1f2d84d86a38e2e25d2446ad1b707576;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245900 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index f039aed5e3d..9ff4858f0a4 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -323,7 +323,8 @@ void MachineBasicBlock::printAsOperand(raw_ostream &OS, } void MachineBasicBlock::removeLiveIn(unsigned Reg) { - livein_iterator I = std::find(livein_begin(), livein_end(), Reg); + std::vector::iterator I + = std::find(LiveIns.begin(), LiveIns.end(), Reg); if (I != LiveIns.end()) LiveIns.erase(I); }