[llvm] r232119 - Move a variable into the assert where it's used - fixes a -Asserts
Eric Christopher
echristo at gmail.com
Thu Mar 12 16:13:04 PDT 2015
Author: echristo
Date: Thu Mar 12 18:13:03 2015
New Revision: 232119
URL: http://llvm.org/viewvc/llvm-project?rev=232119&view=rev
Log:
Move a variable into the assert where it's used - fixes a -Asserts
build warning/error.
Modified:
llvm/trunk/lib/Target/ARM/ThumbRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ThumbRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ThumbRegisterInfo.cpp?rev=232119&r1=232118&r2=232119&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ThumbRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ThumbRegisterInfo.cpp Thu Mar 12 18:13:03 2015
@@ -355,8 +355,7 @@ bool ThumbRegisterInfo::rewriteFrameInde
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);
More information about the llvm-commits
mailing list