mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -433,7 +433,8 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
|
||||
if (mop.getType() == MachineOperand::MO_VirtualRegister)
|
||||
{
|
||||
assert(mop.getVRegValue() != NULL);
|
||||
if (Constant *opConst = dyn_cast<Constant>(mop.getVRegValue())) {
|
||||
opValue = mop.getVRegValue();
|
||||
if (Constant *opConst = dyn_cast<Constant>(opValue)) {
|
||||
opType = ChooseRegOrImmed(opConst, opCode, target,
|
||||
(immedPos == (int)op), machineRegNum,
|
||||
immedValue);
|
||||
|
@@ -433,7 +433,8 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
|
||||
if (mop.getType() == MachineOperand::MO_VirtualRegister)
|
||||
{
|
||||
assert(mop.getVRegValue() != NULL);
|
||||
if (Constant *opConst = dyn_cast<Constant>(mop.getVRegValue())) {
|
||||
opValue = mop.getVRegValue();
|
||||
if (Constant *opConst = dyn_cast<Constant>(opValue)) {
|
||||
opType = ChooseRegOrImmed(opConst, opCode, target,
|
||||
(immedPos == (int)op), machineRegNum,
|
||||
immedValue);
|
||||
|
Reference in New Issue
Block a user