[compiler-rt] [tsan] Make pthread_mutex_clocklock Linux only again (PR #76187)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 21 13:39:12 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 157748341358f38ab55ea3a7a64276a5d4431d77 3b39d1a31c0bc8a1038b7d3a5b8ce1881273ce89 -- compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
index 0c9f9b1040..a9f6673ac4 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
@@ -2918,9 +2918,9 @@ void InitializeInterceptors() {
TSAN_INTERCEPT(pthread_mutex_trylock);
TSAN_INTERCEPT(pthread_mutex_timedlock);
TSAN_INTERCEPT(pthread_mutex_unlock);
- #if SANITIZER_LINUX
+#if SANITIZER_LINUX
TSAN_INTERCEPT(pthread_mutex_clocklock);
- #endif
+#endif
#if SANITIZER_GLIBC
# if !__GLIBC_PREREQ(2, 34)
TSAN_INTERCEPT(__pthread_mutex_lock);
``````````
</details>
https://github.com/llvm/llvm-project/pull/76187
More information about the llvm-commits
mailing list