[cfe-commits] r47234 - /cfe/trunk/Basic/TargetInfo.cpp

Anders Carlsson andersca at mac.com
Sat Feb 16 19:40:02 PST 2008


Author: andersca
Date: Sat Feb 16 21:40:02 2008
New Revision: 47234

URL: http://llvm.org/viewvc/llvm-project?rev=47234&view=rev
Log:
Change alignment for doubles to 32 bits which is what X86 has.

Modified:
    cfe/trunk/Basic/TargetInfo.cpp

Modified: cfe/trunk/Basic/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/TargetInfo.cpp?rev=47234&r1=47233&r2=47234&view=diff

==============================================================================
--- cfe/trunk/Basic/TargetInfo.cpp (original)
+++ cfe/trunk/Basic/TargetInfo.cpp Sat Feb 16 21:40:02 2008
@@ -37,7 +37,8 @@
 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,





More information about the cfe-commits mailing list