Skip to content

Commit 303625c

Browse files
arsenmyuxuanchen1997
authored andcommitted
ARM: Avoid using MachineFunction::getMMI
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250670
1 parent 3692866 commit 303625c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
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)