diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-08-08 00:54:33 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-08-08 00:54:33 +0000 |
commit | 1285013dbe3409016c05db9322f3baa55d83cc4f (patch) | |
tree | cebc538b8a9184d4580907fa87c3446dead2b563 /libcxxabi/src/cxa_exception_storage.cpp | |
parent | 59e128266c9de11ba334450e1c3b7101155bd55b (diff) | |
download | bcm5719-llvm-1285013dbe3409016c05db9322f3baa55d83cc4f.tar.gz bcm5719-llvm-1285013dbe3409016c05db9322f3baa55d83cc4f.zip |
[libc++abi] Use proper calling convention for TLS destructor
This is needed when using Windows threading.
llvm-svn: 310329
Diffstat (limited to 'libcxxabi/src/cxa_exception_storage.cpp')
-rw-r--r-- | libcxxabi/src/cxa_exception_storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/cxa_exception_storage.cpp b/libcxxabi/src/cxa_exception_storage.cpp index eaac21734f9..c641e0225f8 100644 --- a/libcxxabi/src/cxa_exception_storage.cpp +++ b/libcxxabi/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()"); |