]> granicus.if.org Git - clang/commitdiff
Change alignment for doubles to 32 bits which is what X86 has.
authorAnders Carlsson <andersca@mac.com>
Sun, 17 Feb 2008 03:40:02 +0000 (03:40 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 17 Feb 2008 03:40:02 +0000 (03:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47234 91177308-0d34-0410-b5e6-96231b3b80d8

Basic/TargetInfo.cpp

index e0a464219b44f3474144fa6a1aff3e67f1308d5c..f0aecb1e08a821d63b66d84f8ea8831d1513da5d 100644 (file)
@@ -37,7 +37,8 @@ void TargetInfo::getFloatInfo(uint64_t &Size, unsigned &Align,
 void TargetInfo::getDoubleInfo(uint64_t &Size, unsigned &Align,
                                const llvm::fltSemantics *&Format,
                                FullSourceLoc Loc) {
-  Size = Align = 64;  // FIXME: implement correctly.
+  Size = 64; // FIXME: implement correctly.
+  Align = 32;
   Format = &llvm::APFloat::IEEEdouble;
 }
 void TargetInfo::getLongDoubleInfo(uint64_t &Size, unsigned &Align,