Skip to content

Commit 2ce865d

Browse files
committed
ARM: Avoid using MachineFunction::getMMI
1 parent 1031335 commit 2ce865d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -6352,8 +6352,7 @@ ARMBaseInstrInfo::getOutliningTypeImpl(const MachineModuleInfo &MMI,
63526352

63536353
// We have a function we have information about. Check if it's something we
63546354
// can safely outline.
6355-
MachineFunction *MF = MI.getParent()->getParent();
6356-
MachineFunction *CalleeMF = MF->getMMI().getMachineFunction(*Callee);
6355+
MachineFunction *CalleeMF = MMI.getMachineFunction(*Callee);
63576356

63586357
// We don't know what's going on with the callee at all. Don't touch it.
63596358
if (!CalleeMF)

0 commit comments

Comments
 (0)