[compiler-rt] 6c4219f - [lsan] Fix Darwin build
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 17 16:35:53 PDT 2023
Author: Vitaly Buka
Date: 2023-04-17T16:35:47-07:00
New Revision: 6c4219f816d4a1d9b88b7453f714a3cc95cb4471
URL: https://github.com/llvm/llvm-project/commit/6c4219f816d4a1d9b88b7453f714a3cc95cb4471
DIFF: https://github.com/llvm/llvm-project/commit/6c4219f816d4a1d9b88b7453f714a3cc95cb4471.diff
LOG: [lsan] Fix Darwin build
Added:
Modified:
compiler-rt/lib/lsan/lsan_common_mac.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/lsan/lsan_common_mac.cpp b/compiler-rt/lib/lsan/lsan_common_mac.cpp
index 79cc987b3a0c..9ccf098a6567 100644
--- 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);
}
More information about the llvm-commits
mailing list