[compiler-rt] [NFC] Fix typo in `REAL(pthread_join(th, ret))` (PR #102393)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 15:02:36 PDT 2024
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/102393
Looks like the macro expands to the same,
but usually we do `REAL(pthread_join)(th, ret)`.
>From 655b626ee27e7700a02c217391411ca8c6d23047 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Wed, 7 Aug 2024 15:02:21 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
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 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