mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Lanai: Avoid implicit iterator conversions, NFC
Avoid implicit conversions from MachineInstrBundleIterator to MachineInstr* in the Lanai backend. llvm-svn: 274942
This commit is contained in:
parent
e0bacde5fb
commit
2fc31d6ea4
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user