diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-09-18 21:34:12 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-09-18 21:34:12 +0000 |
commit | e115af2777f6532c8943e95baf7011e2f92f781a (patch) | |
tree | 98669c11702707521b6a2805fce3cfcd03ffcb79 /clang/lib/Sema/SemaOverload.cpp | |
parent | 1de7ec8c7caa59c8a1c3862b3cda9b0f17481bca (diff) | |
download | bcm5719-llvm-e115af2777f6532c8943e95baf7011e2f92f781a.tar.gz bcm5719-llvm-e115af2777f6532c8943e95baf7011e2f92f781a.zip |
I've added Apple-only behavior that looks for libstdc++ in the same process and if found, checks the string stored in <stdexcept> exception objects to see if it is the gcc empty string singleton before manipulating the reference count. This is done so that if such an exception is created with a zero-length string in libstdc++, libc++abi won't try to delete the memory. This is part of a ongoing process to make libc++ exceptions ABI-compatible with libstdc++-4.2 exceptions, to the point that each library can catch exceptions thrown by the other. If other parties would also like this behavior, the #if __APPLE__ can be broadened.
llvm-svn: 164170
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
0 files changed, 0 insertions, 0 deletions