diff options
author | Matthias Braun <matze@braunis.de> | 2015-08-24 23:30:39 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-08-24 23:30:39 +0000 |
commit | 1b50bb58a1b92ea828bb9e8e8efda8e293db0565 (patch) | |
tree | 58dbc803ac4d63069cb5c47e49c019198d084a60 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 4104337d9d6af5fa546cc6b72a613e7b4e51c59b (diff) | |
download | bcm5719-llvm-1b50bb58a1b92ea828bb9e8e8efda8e293db0565.tar.gz bcm5719-llvm-1b50bb58a1b92ea828bb9e8e8efda8e293db0565.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index f039aed5e3d..9ff4858f0a4 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/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<unsigned>::iterator I + = std::find(LiveIns.begin(), LiveIns.end(), Reg); if (I != LiveIns.end()) LiveIns.erase(I); } |