mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
88d724909e
commit
740aee4b53
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user