From: Eric Christopher Date: Thu, 12 Mar 2015 23:13:03 +0000 (+0000) Subject: Move a variable into the assert where it's used - fixes a -Asserts X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=740aee4b5341ec217eda0902d4ad340a831b4cee;p=oota-llvm.git Move a variable into the assert where it's used - fixes a -Asserts build warning/error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232119 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ThumbRegisterInfo.cpp b/lib/Target/ARM/ThumbRegisterInfo.cpp index e70b6172b46..b5f9d7e38f2 100644 --- a/lib/Target/ARM/ThumbRegisterInfo.cpp +++ b/lib/Target/ARM/ThumbRegisterInfo.cpp @@ -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().isThumb1Only() && + assert(MBB.getParent()->getSubtarget().isThumb1Only() && "This isn't needed for thumb2!"); DebugLoc dl = MI.getDebugLoc(); MachineInstrBuilder MIB(*MBB.getParent(), &MI);