diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-28 09:50:23 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-28 09:50:23 +0000 |
commit | b9565705bdc917800a4298473be4a69273abe514 (patch) | |
tree | 6b5fadb2f86df83f9297bb0671c4cd7886659444 /llvm/lib/Target/X86/X86MCInstLower.cpp | |
parent | 1a39b86d0f412e5d645b6e05770d5ae821063ca2 (diff) | |
download | bcm5719-llvm-b9565705bdc917800a4298473be4a69273abe514.tar.gz bcm5719-llvm-b9565705bdc917800a4298473be4a69273abe514.zip |
Fix ABI incompatible C++03 nullptr_t
In C++03 libc++ emulates nullptr_t using a class, and #define's nullptr.
However this makes nullptr_t mangle differently between C++03 and C++11.
This breaks any function ABI which takes nullptr_t.
Thanfully Clang provides __nullptr in all dialects. This patch adds
an ABI option to switch to using __nullptr in C++03. In a perfect world
I would like to turn this on by default, since it's just ABI breaking fix
to an ABI breaking bug.
llvm-svn: 290662
Diffstat (limited to 'llvm/lib/Target/X86/X86MCInstLower.cpp')
0 files changed, 0 insertions, 0 deletions