diff options
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index e032062346d..a18ac0f772e 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc @@ -905,7 +905,7 @@ void DestroyThreadState() {  }  }  // namespace __tsan -#if !SANITIZER_MAC && !SANITIZER_NETBSD +#if !SANITIZER_MAC && !SANITIZER_NETBSD && !SANITIZER_FREEBSD  static void thread_finalize(void *v) {    uptr iter = (uptr)v;    if (iter > 1) { @@ -936,7 +936,7 @@ extern "C" void *__tsan_thread_start_func(void *arg) {      ThreadState *thr = cur_thread();      // Thread-local state is not initialized yet.      ScopedIgnoreInterceptors ignore; -#if !SANITIZER_MAC && !SANITIZER_NETBSD +#if !SANITIZER_MAC && !SANITIZER_NETBSD && !SANITIZER_FREEBSD      ThreadIgnoreBegin(thr, 0);      if (pthread_setspecific(interceptor_ctx()->finalize_key,                              (void *)GetPthreadDestructorIterations())) { @@ -2742,7 +2742,7 @@ void InitializeInterceptors() {      Die();    } -#if !SANITIZER_MAC && !SANITIZER_NETBSD +#if !SANITIZER_MAC && !SANITIZER_NETBSD && !SANITIZER_FREEBSD    if (pthread_key_create(&interceptor_ctx()->finalize_key, &thread_finalize)) {      Printf("ThreadSanitizer: failed to create thread key\n");      Die();  | 

