build warning/error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232119
91177308-0d34-0410-b5e6-
96231b3b80d8
const ARMBaseInstrInfo &TII) const {
MachineInstr &MI = *II;
MachineBasicBlock &MBB = *MI.getParent();
- const MachineFunction &MF = *MBB.getParent();
- assert(MF.getSubtarget<ARMSubtarget>().isThumb1Only() &&
+ assert(MBB.getParent()->getSubtarget<ARMSubtarget>().isThumb1Only() &&
"This isn't needed for thumb2!");
DebugLoc dl = MI.getDebugLoc();
MachineInstrBuilder MIB(*MBB.getParent(), &MI);