[compiler-rt] [tsan] Fix running check-ubsan with COMPILER_RT_DEBUG=ON (PR #83890)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 10:43:50 PST 2024


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 5105f1551b4bc800f564e7c105fc95e2c51f1239 c6277c47c948e12cb8ee8502e6acdc24331dcc52 -- compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp
index 41d6d2a778..1cadca4be3 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp
@@ -212,8 +212,8 @@ struct InternalDeadlockDetector {
     return initialized > 0;
   }
 };
-__attribute__((tls_model("initial-exec")))
-static THREADLOCAL InternalDeadlockDetector deadlock_detector;
+__attribute__((tls_model("initial-exec"))) static THREADLOCAL
+    InternalDeadlockDetector deadlock_detector;
 
 void CheckedMutex::LockImpl(uptr pc) { deadlock_detector.Lock(type_, pc); }
 

``````````

</details>


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


More information about the llvm-commits mailing list