summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-08-08 00:54:33 +0000
committerShoaib Meenai <smeenai@fb.com>2017-08-08 00:54:33 +0000
commiteb5fa0613081534487b61c13479f46f0ea389f0d (patch)
tree55a13b720164c5a4f41bb192d54be61959f443fc /src
parent1137f968e72317fc7bd7b73e9483023367c8a55b (diff)
[libc++abi] Use proper calling convention for TLS destructor
This is needed when using Windows threading. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@310329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src')
-rw-r--r--src/cxa_exception_storage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cxa_exception_storage.cpp b/src/cxa_exception_storage.cpp
index eaac217..c641e02 100644
--- a/src/cxa_exception_storage.cpp
+++ b/src/cxa_exception_storage.cpp
@@ -56,7 +56,7 @@ namespace {
std::__libcpp_tls_key key_;
std::__libcpp_exec_once_flag flag_ = _LIBCPP_EXEC_ONCE_INITIALIZER;
- void destruct_ (void *p) {
+ void _LIBCPP_TLS_DESTRUCTOR_CC destruct_ (void *p) {
__free_with_fallback ( p );
if ( 0 != std::__libcpp_tls_set ( key_, NULL ) )
abort_message("cannot zero out thread value for __cxa_get_globals()");