[compiler-rt] 89c8d68 - [NFC] Fix typo in `REAL(pthread_join(th, ret))` (#102393)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 15:25:59 PDT 2024
Author: Vitaly Buka
Date: 2024-08-07T15:25:55-07:00
New Revision: 89c8d68eb71d6881fde21e49faa38e2b4a7d7233
URL: https://github.com/llvm/llvm-project/commit/89c8d68eb71d6881fde21e49faa38e2b4a7d7233
DIFF: https://github.com/llvm/llvm-project/commit/89c8d68eb71d6881fde21e49faa38e2b4a7d7233.diff
LOG: [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)`.
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_posix.h
compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_posix.h
index 14617e4771bec..d0954f77e9713 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 9cab2a3727128..1be65bc99b260 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
More information about the llvm-commits
mailing list