summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-07-24 08:17:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-07-24 08:17:07 +0000
commit0f0aee213fa684e8ae70c870afa476e8eefb54fc (patch)
treefc5fa880c13421ed544573bac626ab9ab5c27774 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent4a154b28578ca1a8a17732813007bef65bdeec18 (diff)
downloadbcm5719-llvm-0f0aee213fa684e8ae70c870afa476e8eefb54fc.tar.gz
bcm5719-llvm-0f0aee213fa684e8ae70c870afa476e8eefb54fc.zip
Fix a catastrophic PPC64 ABI bug: i32 operands which are passed in memory (all of the parameter registers are used) are loaded from sp offsets that were off by 4.
llvm-svn: 53979
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 2ea48cf89db..6bf147a6ad9 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -1582,6 +1582,7 @@ PPCTargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op,
++GPR_idx;
} else {
needsLoad = true;
+ ArgSize = PtrByteSize;
}
// All int arguments reserve stack space in Macho ABI.
if (isMachoABI || needsLoad) ArgOffset += 8;
OpenPOWER on IntegriCloud