mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
CodeGen: Avoid implicit conversions in TargetInstrInfo, NFC
Avoid implicit conversions from MachineBasicBlock::iterator to MachineInstr* in TargetInstrInfo. llvm-svn: 274361
This commit is contained in:
parent
e18b83f903
commit
33cfbe6ec5
@ -552,7 +552,7 @@ MachineInstr *TargetInstrInfo::foldMemoryOperand(MachineInstr &MI,
|
||||
storeRegToStackSlot(*MBB, Pos, MO.getReg(), MO.isKill(), FI, RC, TRI);
|
||||
else
|
||||
loadRegFromStackSlot(*MBB, Pos, MO.getReg(), FI, RC, TRI);
|
||||
return --Pos;
|
||||
return &*--Pos;
|
||||
}
|
||||
|
||||
bool TargetInstrInfo::hasReassociableOperands(
|
||||
@ -793,7 +793,7 @@ MachineInstr *TargetInstrInfo::foldMemoryOperand(MachineInstr &MI,
|
||||
// Fold stackmap/patchpoint.
|
||||
NewMI = foldPatchpoint(MF, MI, Ops, FrameIndex, *this);
|
||||
if (NewMI)
|
||||
NewMI = MBB.insert(MI, NewMI);
|
||||
NewMI = &*MBB.insert(MI, NewMI);
|
||||
} else {
|
||||
// Ask the target to do the actual folding.
|
||||
NewMI = foldMemoryOperandImpl(MF, MI, Ops, MI, LoadMI, LIS);
|
||||
|
Loading…
Reference in New Issue
Block a user