Fix wrong frame pointer save offset in the 64-bit PowerPC SVR4 ABI.
authorTilmann Scheller <tilmann.scheller@googlemail.com>
Fri, 18 Dec 2009 13:00:34 +0000 (13:00 +0000)
committerTilmann Scheller <tilmann.scheller@googlemail.com>
Fri, 18 Dec 2009 13:00:34 +0000 (13:00 +0000)
Patch contributed by Ken Werner of IBM!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91681 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFrameInfo.h

index 73d30bf5bed12a8592fff6c3aeede95cb93d5b45..7587b0359816816539892548ba3f3e3b9ede0ad4 100644 (file)
@@ -50,7 +50,7 @@ public:
       return isPPC64 ? -8U : -4U;
     
     // SVR4 ABI: First slot in the general register save area.
-    return -4U;
+    return isPPC64 ? -8U : -4U;
   }
   
   /// getLinkageSize - Return the size of the PowerPC ABI linkage area.