mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
This appears to fix Bug 172 and does not break any other feature tests or
regression tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d3ced934f
commit
f5ba89df1f
@ -167,6 +167,12 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
|
||||
constantThatMustBeLoaded = true;
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// If the operand is from the constant pool, don't try to change it.
|
||||
//
|
||||
if (mop.getType() == MachineOperand::MO_ConstantPoolIndex) {
|
||||
continue;
|
||||
}
|
||||
assert(mop.isImmediate());
|
||||
bool isSigned = mop.getType() == MachineOperand::MO_SignExtendedImmed;
|
||||
|
||||
|
@ -167,6 +167,12 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
|
||||
constantThatMustBeLoaded = true;
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// If the operand is from the constant pool, don't try to change it.
|
||||
//
|
||||
if (mop.getType() == MachineOperand::MO_ConstantPoolIndex) {
|
||||
continue;
|
||||
}
|
||||
assert(mop.isImmediate());
|
||||
bool isSigned = mop.getType() == MachineOperand::MO_SignExtendedImmed;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user