summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrBuilder.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-21 17:58:09 +0000
committerDan Gohman <gohman@apple.com>2009-09-21 17:58:09 +0000
commitb29ff977d10ddc90fd993d64d25f5c3c6ac935aa (patch)
treeb795ef3defe032c7ed1eb753b266174cba4a724e /lib/Target/SystemZ/SystemZInstrBuilder.h
parent19ad784dacc10247d47d0928f6222390c60fbb4b (diff)
downloadllvm-b29ff977d10ddc90fd993d64d25f5c3c6ac935aa.tar.gz
llvm-b29ff977d10ddc90fd993d64d25f5c3c6ac935aa.tar.bz2
llvm-b29ff977d10ddc90fd993d64d25f5c3c6ac935aa.tar.xz
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
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrBuilder.h')
-rw-r--r--lib/Target/SystemZ/SystemZInstrBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrBuilder.h b/lib/Target/SystemZ/SystemZInstrBuilder.h
index 03f708feba..08361c7491 100644
--- a/lib/Target/SystemZ/SystemZInstrBuilder.h
+++ b/lib/Target/SystemZ/SystemZInstrBuilder.h
@@ -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)