mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Fix the offset values for these memoperands. For frame objects, the
PseudoSourceValue already effectively represents the offset from the frame base, so the actual offset should not be added to it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19ad784dac
commit
b29ff977d1
@ -115,7 +115,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0) {
|
||||
Flags |= MachineMemOperand::MOStore;
|
||||
MachineMemOperand MMO(PseudoSourceValue::getFixedStack(FI),
|
||||
Flags,
|
||||
MFI.getObjectOffset(FI) + Offset,
|
||||
Offset,
|
||||
MFI.getObjectSize(FI),
|
||||
MFI.getObjectAlignment(FI));
|
||||
return addOffset(MIB.addFrameIndex(FI), Offset)
|
||||
|
@ -144,7 +144,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0) {
|
||||
Flags |= MachineMemOperand::MOStore;
|
||||
MachineMemOperand MMO(PseudoSourceValue::getFixedStack(FI),
|
||||
Flags,
|
||||
MFI.getObjectOffset(FI) + Offset,
|
||||
Offset,
|
||||
MFI.getObjectSize(FI),
|
||||
MFI.getObjectAlignment(FI));
|
||||
return addOffset(MIB.addFrameIndex(FI), Offset)
|
||||
|
Loading…
x
Reference in New Issue
Block a user