[compiler-rt] [TSan] Add support for Android (PR #147580)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 00:53:35 PDT 2025
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 origin/main HEAD --extensions cpp -- compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
index ac272f7ef..65d6fcaaa 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
@@ -683,7 +683,7 @@ ThreadState *cur_thread() {
// getPlatformAllocatorTlsSlot should not use TLS_SLOT_SANITIZER slot.
uptr addr = reinterpret_cast<uptr>(thr);
if (addr % 2 != 0) {
- return reinterpret_cast<ThreadState *>(addr & ~1ULL);
+ return reinterpret_cast<ThreadState*>(addr & ~1ULL);
}
return thr;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/147580
More information about the llvm-commits
mailing list