mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Fix an obvious bug exposed when we are doing
ADD X, 4 ==> MOV32ri $X+4, ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c003e26e5
commit
cb4a38e75d
@ -154,7 +154,8 @@ static MachineInstr *MakeMIInst(unsigned Opcode, unsigned FrameIndex,
|
||||
.addZImm(MI->getOperand(1).getImmedValue());
|
||||
else if (MI->getOperand(1).isGlobalAddress())
|
||||
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
||||
.addGlobalAddress(MI->getOperand(1).getGlobal());
|
||||
.addGlobalAddress(MI->getOperand(1).getGlobal(),
|
||||
false, MI->getOperand(1).getOffset());
|
||||
assert(0 && "Unknown operand for MakeMI!");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user