summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:29:57 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:29:57 +0000
commitbc2ead6ea30df38dc5ea58aefea538f82fee881a (patch)
treea944d75ad115453a31e63e3c11699ab22a938efd /llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
parent3729850b5029f37ab2294b5a091b14344a870551 (diff)
downloadbcm5719-llvm-bc2ead6ea30df38dc5ea58aefea538f82fee881a.tar.gz
bcm5719-llvm-bc2ead6ea30df38dc5ea58aefea538f82fee881a.zip
Fix incomin arg stack frame offset in case we need to generate stack frame
llvm-svn: 76049
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
index ab92ebb89e8..c829e43fb17 100644
--- a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
@@ -101,7 +101,7 @@ int SystemZRegisterInfo::getFrameIndexOffset(MachineFunction &MF, int FI) const
Offset += StackSize - TFI.getOffsetOfLocalArea();
// Skip the register save area if we generated the stack frame.
- if (StackSize)
+ if (StackSize || MFI->hasCalls())
Offset -= TFI.getOffsetOfLocalArea();
return Offset;
OpenPOWER on IntegriCloud