mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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 {
|
const ARMBaseInstrInfo &TII) const {
|
||||||
MachineInstr &MI = *II;
|
MachineInstr &MI = *II;
|
||||||
MachineBasicBlock &MBB = *MI.getParent();
|
MachineBasicBlock &MBB = *MI.getParent();
|
||||||
const MachineFunction &MF = *MBB.getParent();
|
assert(MBB.getParent()->getSubtarget<ARMSubtarget>().isThumb1Only() &&
|
||||||
assert(MF.getSubtarget<ARMSubtarget>().isThumb1Only() &&
|
|
||||||
"This isn't needed for thumb2!");
|
"This isn't needed for thumb2!");
|
||||||
DebugLoc dl = MI.getDebugLoc();
|
DebugLoc dl = MI.getDebugLoc();
|
||||||
MachineInstrBuilder MIB(*MBB.getParent(), &MI);
|
MachineInstrBuilder MIB(*MBB.getParent(), &MI);
|
||||||
|
Loading…
Reference in New Issue
Block a user