diff options
Diffstat (limited to 'contrib/llvm/lib/Target/MSP430/MSP430FrameLowering.cpp')
| -rw-r--r-- | contrib/llvm/lib/Target/MSP430/MSP430FrameLowering.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm/lib/Target/MSP430/MSP430FrameLowering.cpp b/contrib/llvm/lib/Target/MSP430/MSP430FrameLowering.cpp index e504011dfdc8..82c8b298c51f 100644 --- a/contrib/llvm/lib/Target/MSP430/MSP430FrameLowering.cpp +++ b/contrib/llvm/lib/Target/MSP430/MSP430FrameLowering.cpp @@ -71,7 +71,7 @@ void MSP430FrameLowering::emitPrologue(MachineFunction &MF) const {        .addReg(MSP430::SPW);      // Mark the FramePtr as live-in in every block except the entry. -    for (MachineFunction::iterator I = llvm::next(MF.begin()), E = MF.end(); +    for (MachineFunction::iterator I = std::next(MF.begin()), E = MF.end();           I != E; ++I)        I->addLiveIn(MSP430::FPW); @@ -138,7 +138,7 @@ void MSP430FrameLowering::emitEpilogue(MachineFunction &MF,    // Skip the callee-saved pop instructions.    while (MBBI != MBB.begin()) { -    MachineBasicBlock::iterator PI = prior(MBBI); +    MachineBasicBlock::iterator PI = std::prev(MBBI);      unsigned Opc = PI->getOpcode();      if (Opc != MSP430::POP16r && !PI->isTerminator())        break; @@ -242,7 +242,7 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,        // alignment boundary.        Amount = (Amount+StackAlign-1)/StackAlign*StackAlign; -      MachineInstr *New = 0; +      MachineInstr *New = nullptr;        if (Old->getOpcode() == TII.getCallFrameSetupOpcode()) {          New = BuildMI(MF, Old->getDebugLoc(),                        TII.get(MSP430::SUB16ri), MSP430::SPW)  | 
