diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-20 07:39:20 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-20 07:39:20 +0000 |
commit | fdf45175a8444c421c03627c139777d1de48e516 (patch) | |
tree | 07671655669804710cbc435f2ae7e7d2018c0052 /lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 5f645953555cee528cd1c0d6faa16d9b89ebba48 (diff) | |
download | llvm-fdf45175a8444c421c03627c139777d1de48e516.tar.gz llvm-fdf45175a8444c421c03627c139777d1de48e516.tar.bz2 llvm-fdf45175a8444c421c03627c139777d1de48e516.tar.xz |
Fully qualify llvm::next to avoid ambiguity when building as C++11.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 0da6662441..99d36071cf 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1157,7 +1157,7 @@ tryInstructionTransform(MachineBasicBlock::iterator &mi, Begin = MachineBasicBlock::iterator(NewMIs[0]); if (Begin != MBB->begin()) --Begin; - End = next(MachineBasicBlock::iterator(MI)); + End = llvm::next(MachineBasicBlock::iterator(MI)); for (MachineInstr::const_mop_iterator MOI = MI.operands_begin(), MOE = MI.operands_end(); MOI != MOE; ++MOI) { @@ -1562,7 +1562,8 @@ eliminateRegSequence(MachineBasicBlock::iterator &MBBI) { DEBUG(dbgs() << "Inserted: " << *CopyMI); } - MachineBasicBlock::iterator EndMBBI = next(MachineBasicBlock::iterator(MI)); + MachineBasicBlock::iterator EndMBBI = + llvm::next(MachineBasicBlock::iterator(MI)); if (!DefEmitted) { DEBUG(dbgs() << "Turned: " << *MI << " into an IMPLICIT_DEF"); |