From f59e129c3b842a376ffe5f3e2bfd8814b70feed2 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 16 Dec 2011 22:34:14 +0000 Subject: Add the value of "suitably aligned" from the C++11 standard to Basic/TargetInfo. This is equal to alignof(std::max_align_t) on the platform and equal to the alignment provided by malloc. (Platform owners please double-check your platform's value.) llvm-svn: 146762 --- clang/lib/Basic/TargetInfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Basic/TargetInfo.cpp') diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 694121545ad..66274f11fc1 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/lib/Basic/TargetInfo.cpp @@ -34,6 +34,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { IntWidth = IntAlign = 32; LongWidth = LongAlign = 32; LongLongWidth = LongLongAlign = 64; + SuitableAlign = 64; HalfWidth = 16; HalfAlign = 16; FloatWidth = 32; -- cgit v1.2.3