mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
improve portability to avoid conflicting with std::next in c++'0x.
Patch by Howard Hinnant! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -876,7 +876,7 @@ bool PreAllocSplitting::Rematerialize(unsigned VReg, VNInfo* ValNo,
|
||||
if (!ValNo->isDefAccurate() || DefMI->getParent() == BarrierMBB)
|
||||
KillPt = findSpillPoint(BarrierMBB, Barrier, NULL, RefsInMBB);
|
||||
else
|
||||
KillPt = next(MachineBasicBlock::iterator(DefMI));
|
||||
KillPt = llvm::next(MachineBasicBlock::iterator(DefMI));
|
||||
|
||||
if (KillPt == DefMI->getParent()->end())
|
||||
return false;
|
||||
@@ -1118,7 +1118,7 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) {
|
||||
return false; // No gap to insert spill.
|
||||
}
|
||||
} else {
|
||||
SpillPt = next(MachineBasicBlock::iterator(DefMI));
|
||||
SpillPt = llvm::next(MachineBasicBlock::iterator(DefMI));
|
||||
if (SpillPt == DefMBB->end()) {
|
||||
DEBUG(errs() << "FAILED (could not find a suitable spill point).\n");
|
||||
return false; // No gap to insert spill.
|
||||
|
||||
Reference in New Issue
Block a user