aboutsummaryrefslogtreecommitdiff
path: root/Basic
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-02-17 03:40:02 +0000
committerAnders Carlsson <andersca@mac.com>2008-02-17 03:40:02 +0000
commita9b20e57d407dfc8bd260e6228ba40f64439869c (patch)
treeb31409679cea0506309ec8129fab601e11abcb24 /Basic
parentd3f2f79fedfef7cae818c55a1f3d7a8f5992e5a0 (diff)
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
Diffstat (limited to 'Basic')
-rw-r--r--Basic/TargetInfo.cpp3
1 files changed, 2 insertions, 1 deletions
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,