[compiler-rt] [sanitizer] Fix asserts in asan and tsan in pthread interceptors. (PR #75394)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 14:26:00 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 f2464ca317bfeeedddb7cbdea3c2c8ec487890bb b96c62b6f6ac3b55b28c4eb59f2ce49e60e6b4a4 -- compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.cpp compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_join.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_join.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_join.cpp
index dd70f12fbb..5d3a0c677e 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_join.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_join.cpp
@@ -12,11 +12,11 @@
 
 #include <assert.h>
 #include <ctime>
+#include <errno.h>
 #include <pthread.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <errno.h>
 
 bool use_exit;
 static void *fn(void *args) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/75394


More information about the llvm-commits mailing list