mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Don't override the var from the enclosing scope.
When doing copy/paste/modify, it's apparently rather important to remember the 'modify' bit... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
574aab5700
commit
f78ee6316b
@ -1397,7 +1397,7 @@ getFrameIndexInstrOffset(MachineInstr *MI, int Idx) const {
|
||||
case ARMII::AddrMode5: {
|
||||
// VFP address mode.
|
||||
const MachineOperand &OffOp = MI->getOperand(Idx+1);
|
||||
int InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
||||
InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
||||
if (ARM_AM::getAM5Op(OffOp.getImm()) == ARM_AM::sub)
|
||||
InstrOffs = -InstrOffs;
|
||||
Scale = 4;
|
||||
@ -1593,7 +1593,7 @@ bool ARMBaseRegisterInfo::isFrameOffsetLegal(const MachineInstr *MI,
|
||||
case ARMII::AddrMode5: {
|
||||
// VFP address mode.
|
||||
const MachineOperand &OffOp = MI->getOperand(i+1);
|
||||
int InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
||||
InstrOffs = ARM_AM::getAM5Offset(OffOp.getImm());
|
||||
if (ARM_AM::getAM5Op(OffOp.getImm()) == ARM_AM::sub)
|
||||
InstrOffs = -InstrOffs;
|
||||
NumBits = 8;
|
||||
|
Loading…
x
Reference in New Issue
Block a user