Skip to content

Commit

Permalink
Move a variable into the assert where it's used - fixes a -Asserts
Browse files Browse the repository at this point in the history
build warning/error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232119 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Mar 12, 2015
1 parent 88d7249 commit 740aee4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Target/ARM/ThumbRegisterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 740aee4

Please sign in to comment.