Skip to content

Commit

Permalink
Lanai: Avoid implicit iterator conversions, NFC
Browse files Browse the repository at this point in the history
Avoid implicit conversions from MachineInstrBundleIterator to
MachineInstr* in the Lanai backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274942 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dexonsmith committed Jul 8, 2016
1 parent 230dab1 commit ccc4444
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Target/Lanai/LanaiFrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ void LanaiFrameLowering::replaceAdjDynAllocPseudo(MachineFunction &MF) const {
++MBB) {
MachineBasicBlock::iterator MBBI = MBB->begin();
while (MBBI != MBB->end()) {
MachineInstr *MI = MBBI++;
if (MI->getOpcode() == Lanai::ADJDYNALLOC) {
DebugLoc DL = MI->getDebugLoc();
unsigned Dst = MI->getOperand(0).getReg();
unsigned Src = MI->getOperand(1).getReg();
MachineInstr &MI = *MBBI++;
if (MI.getOpcode() == Lanai::ADJDYNALLOC) {
DebugLoc DL = MI.getDebugLoc();
unsigned Dst = MI.getOperand(0).getReg();
unsigned Src = MI.getOperand(1).getReg();

BuildMI(*MBB, MI, DL, LII.get(Lanai::ADD_I_LO), Dst)
.addReg(Src)
.addImm(MaxCallFrameSize);
MI->eraseFromParent();
MI.eraseFromParent();
}
}
}
Expand Down

0 comments on commit ccc4444

Please sign in to comment.