]> granicus.if.org Git - clang/commit
Restore the libc++ definition of max_align_t on Apple platforms
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 24 Feb 2015 01:06:22 +0000 (01:06 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 24 Feb 2015 01:06:22 +0000 (01:06 +0000)
commit8e51c4da267677c458c1021374ab69223921c015
tree4f3bcc29addbfe68cebf8cd677164d315996af5a
parent9c4b255d03d29db66d0eb5dfc775b34e9efe3531
Restore the libc++ definition of max_align_t on Apple platforms

Clang has introduced ::max_align_t in stddef.h in r201729, but libc++ was
already defining std::max_align_t on Darwin because there was none in the
global namespace.  After that Clang commit though, libc++ started defining
std::max_align_t to be a typedef for ::max_align_t, which has a different
definition.  This changed the ABI.  This commit restores the previous
definition.

rdar://19919394 rdar://18557982

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230292 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/__stddef_max_align_t.h
test/Headers/arm64-apple-ios-types.cpp [new file with mode: 0644]
test/Headers/thumbv7-apple-ios-types.cpp [new file with mode: 0644]
test/Headers/x86_64-apple-macosx-types.cpp [new file with mode: 0644]