From 89c8d68eb71d6881fde21e49faa38e2b4a7d7233 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 7 Aug 2024 15:25:55 -0700 Subject: [PATCH] [NFC] Fix typo in `REAL(pthread_join(th, ret))` (#102393) Looks like the macro expands to the same, but usually we do `REAL(pthread_join)(th, ret)`. --- compiler-rt/lib/sanitizer_common/sanitizer_posix.h | 2 +- compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_posix.h index 14617e4771bec4..d0954f77e97136 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix.h @@ -86,7 +86,7 @@ int internal_pthread_join(void *th, void **ret); return REAL(pthread_create)(th, attr, callback, param); \ } \ int internal_pthread_join(void *th, void **ret) { \ - return REAL(pthread_join(th, ret)); \ + return REAL(pthread_join)(th, ret); \ } \ } // namespace __sanitizer diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp index 9cab2a37271288..1be65bc99b260d 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp @@ -1097,7 +1097,7 @@ int internal_pthread_create(void *th, void *attr, void *(*callback)(void *), } int internal_pthread_join(void *th, void **ret) { ScopedIgnoreInterceptors ignore; - return REAL(pthread_join(th, ret)); + return REAL(pthread_join)(th, ret); } } // namespace __sanitizer