Fix powerpc test failure - forgot to initialize stack slot size for PPCLinuxMCAsmInfo
authorEli Bendersky <eliben@google.com>
Wed, 23 Jan 2013 17:12:15 +0000 (17:12 +0000)
committerEli Bendersky <eliben@google.com>
Wed, 23 Jan 2013 17:12:15 +0000 (17:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173275 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp

index b04842782aeb57ac2af8ec20d9037d98b3207ae0..a25d7fe64f3af7d3d2319400e6cd306ea4e17098 100644 (file)
@@ -36,8 +36,9 @@ PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
 void PPCLinuxMCAsmInfo::anchor() { }
 
 PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
-  if (is64Bit)
-    PointerSize = 8;
+  if (is64Bit) {
+    PointerSize = CalleeSaveStackSlotSize = 8;
+  }
   IsLittleEndian = false;
 
   // ".comm align is in bytes but .align is pow-2."