Skip to content

Commit 6c4219f

Browse files
committed
[lsan] Fix Darwin build
1 parent b71f2fc commit 6c4219f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/lsan/lsan_common_mac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static pthread_once_t key_once = PTHREAD_ONCE_INIT;
6363
// so we can't destroy it until it's been used and reset.
6464
void restore_tid_data(void *ptr) {
6565
thread_local_data_t *data = (thread_local_data_t *)ptr;
66-
if (data->current_thread_id)
66+
if (data->current_thread)
6767
pthread_setspecific(key, data);
6868
}
6969

0 commit comments

Comments
 (0)