From: Anders Carlsson Date: Sun, 17 Feb 2008 03:40:02 +0000 (+0000) Subject: Change alignment for doubles to 32 bits which is what X86 has. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9b20e57d407dfc8bd260e6228ba40f64439869c;p=clang Change alignment for doubles to 32 bits which is what X86 has. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47234 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp index e0a464219b..f0aecb1e08 100644 --- a/Basic/TargetInfo.cpp +++ b/Basic/TargetInfo.cpp @@ -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,