Move a variable into the assert where it's used - fixes a -Asserts

build warning/error.

llvm-svn: 232119
This commit is contained in:
Eric Christopher 2015-03-12 23:13:03 +00:00
parent ae32649ff2
commit 7fde301d5b
1 changed files with 1 additions and 2 deletions

View File

@ -355,8 +355,7 @@ bool ThumbRegisterInfo::rewriteFrameIndex(MachineBasicBlock::iterator II,
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);