[compiler-rt] [LSAN] Add extra suppressions on Apple Aarch64 (PR #117478)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 24 03:47:04 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 c4d656a4e992648f3490536336c230041c74dc38 4a1855f5730a8807dede8bfcdb5d91156a0ccf6d --extensions cpp -- compiler-rt/lib/lsan/lsan_common.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 56b943fa05..3b2373321f 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -119,15 +119,16 @@ static const char kStdSuppressions[] =
     "leak:*pthread_exit*\n"
 #  endif  // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
 #  if SANITIZER_APPLE
-    // For Darwin and os_log/os_trace: https://reviews.llvm.org/D35173
-#   if SANITIZER_ARM64
+// For Darwin and os_log/os_trace: https://reviews.llvm.org/D35173
+#    if SANITIZER_ARM64
     // Apple Aarch64 leaks on startup in _fetchInitializingClassList and when
     // using thread locals in dyld4::RuntimeState::_instantiateTLVs.
     // See https://github.com/llvm/llvm-project/issues/115992.
-    "leak:*_os_trace*\nleak:*_fetchInitializingClassList*\nleak:*dyld4::RuntimeState::_instantiateTLVs*\n"
-#   else
+    "leak:*_os_trace*\nleak:*_fetchInitializingClassList*\nleak:*dyld4::"
+    "RuntimeState::_instantiateTLVs*\n"
+#    else
     "leak:*_os_trace*\n"
-#   endif
+#    endif
 #  endif
     // TLS leak in some glibc versions, described in
     // https://sourceware.org/bugzilla/show_bug.cgi?id=12650.

``````````

</details>


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


More information about the llvm-commits mailing list