[compiler-rt] [asan] __asan_default_suppressions is never called because it is redeclared within __asan namespace (PR #85598)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 20:08:51 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Mikhail Smirnov (cpp4ever)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/85598.diff
1 Files Affected:
- (modified) compiler-rt/lib/asan/asan_suppressions.cpp (+4-4)
``````````diff
diff --git a/compiler-rt/lib/asan/asan_suppressions.cpp b/compiler-rt/lib/asan/asan_suppressions.cpp
index e71d231821866a..b3170d634036b4 100644
--- a/compiler-rt/lib/asan/asan_suppressions.cpp
+++ b/compiler-rt/lib/asan/asan_suppressions.cpp
@@ -30,10 +30,6 @@ static const char *kSuppressionTypes[] = {
kInterceptorName, kInterceptorViaFunction, kInterceptorViaLibrary,
kODRViolation};
-SANITIZER_INTERFACE_WEAK_DEF(const char *, __asan_default_suppressions, void) {
- return "";
-}
-
void InitializeSuppressions() {
CHECK_EQ(nullptr, suppression_ctx);
suppression_ctx = new (suppression_placeholder)
@@ -101,3 +97,7 @@ bool IsStackTraceSuppressed(const StackTrace *stack) {
}
} // namespace __asan
+
+SANITIZER_INTERFACE_WEAK_DEF(const char *, __asan_default_suppressions, void) {
+ return "";
+}
``````````
</details>
https://github.com/llvm/llvm-project/pull/85598
More information about the llvm-commits
mailing list