diff options
| author | Jan Wen Voung <jvoung@google.com> | 2014-01-15 21:42:41 +0000 |
|---|---|---|
| committer | Jan Wen Voung <jvoung@google.com> | 2014-01-15 21:42:41 +0000 |
| commit | bb0ec7ba42c883dcedd4529d31998c90f9159ff8 (patch) | |
| tree | 6f94c2708e1697e9b19b58361aab25bb564cfa18 /lib/Basic/Targets.cpp | |
| parent | 93de7bb38c1c57f8b8bafcb697bb5030793a9d6c (diff) | |
| download | clang-bb0ec7ba42c883dcedd4529d31998c90f9159ff8.tar.gz clang-bb0ec7ba42c883dcedd4529d31998c90f9159ff8.tar.bz2 clang-bb0ec7ba42c883dcedd4529d31998c90f9159ff8.tar.xz | |
Ensure i686-nacl long long is aligned 8 bytes (like malign-double)
Set NaCl OSTargetInfo to have LongLongAlign = 64. Otherwise, it will
pick up the setting of 32 from X86_32TargetInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
| -rw-r--r-- | lib/Basic/Targets.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 9ce333d4af..6a3d57b405 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -619,6 +619,8 @@ public: this->DoubleAlign = 64; this->LongDoubleWidth = 64; this->LongDoubleAlign = 64; + this->LongLongWidth = 64; + this->LongLongAlign = 64; this->SizeType = TargetInfo::UnsignedInt; this->PtrDiffType = TargetInfo::SignedInt; this->IntPtrType = TargetInfo::SignedInt; |
