Double and long preferred alignment is 8 byte.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 22 Jan 2007 23:09:50 +0000 (23:09 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 22 Jan 2007 23:09:50 +0000 (23:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index 17bc7b14eb1e0287b626353943cd2319751c21fd..8f648d8edaa622dfb7a9f4bec192c1571e0dfcd0 100644 (file)
@@ -109,8 +109,8 @@ X86_64TargetMachine::X86_64TargetMachine(const Module &M, const std::string &FS)
 X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS, bool is64Bit)
   : Subtarget(M, FS, is64Bit),
     DataLayout(Subtarget.is64Bit() ?
-               std::string("e-p:64:64-d:32:64-l:32") :
-               std::string("e-p:32:32-d:32:64-l:32")),
+               std::string("e-p:64:64-d:32:64-l:32:64") :
+               std::string("e-p:32:32-d:32:64-l:32:64")),
     FrameInfo(TargetFrameInfo::StackGrowsDown,
               Subtarget.getStackAlignment(), Subtarget.is64Bit() ? -8 : -4),
     InstrInfo(*this), JITInfo(*this), TLInfo(*this) {