projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e1282
)
[libc++abi] Use proper calling convention for TLS destructor
author
Shoaib Meenai
<smeenai@fb.com>
Tue, 8 Aug 2017 00:54:33 +0000
(
00:54
+0000)
committer
Shoaib Meenai
<smeenai@fb.com>
Tue, 8 Aug 2017 00:54:33 +0000
(
00:54
+0000)
This is needed when using Windows threading.
llvm-svn: 310329
libcxxabi/src/cxa_exception_storage.cpp
patch
|
blob
|
history
diff --git
a/libcxxabi/src/cxa_exception_storage.cpp
b/libcxxabi/src/cxa_exception_storage.cpp
index
eaac217
..
c641e02
100644
(file)
--- 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()");