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)
commita586ea13a41a0c4ce0a3f773bb975a05a22d07ea
treedf66f7fcdcb62b9c3fdd4d5b04aeb73c32becea1
parentb14010d28bc7b9c8d2457abb1c90ec7e7f1fa99b
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

llvm-svn: 230292
clang/lib/Headers/__stddef_max_align_t.h
clang/test/Headers/arm64-apple-ios-types.cpp [new file with mode: 0644]
clang/test/Headers/thumbv7-apple-ios-types.cpp [new file with mode: 0644]
clang/test/Headers/x86_64-apple-macosx-types.cpp [new file with mode: 0644]