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:
b71f2fc
)
[lsan] Fix Darwin build
author
Vitaly Buka
<vitalybuka@google.com>
Mon, 17 Apr 2023 23:35:19 +0000
(16:35 -0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Mon, 17 Apr 2023 23:35:47 +0000
(16:35 -0700)
compiler-rt/lib/lsan/lsan_common_mac.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/lsan/lsan_common_mac.cpp
b/compiler-rt/lib/lsan/lsan_common_mac.cpp
index
79cc987
..
9ccf098
100644
(file)
--- a/
compiler-rt/lib/lsan/lsan_common_mac.cpp
+++ b/
compiler-rt/lib/lsan/lsan_common_mac.cpp
@@
-63,7
+63,7
@@
static pthread_once_t key_once = PTHREAD_ONCE_INIT;
// so we can't destroy it until it's been used and reset.
void restore_tid_data(void *ptr) {
thread_local_data_t *data = (thread_local_data_t *)ptr;
- if (data->current_thread
_id
)
+ if (data->current_thread)
pthread_setspecific(key, data);
}