[compiler-rt] 7623501 - [asan] Fix build on fuchsia (#136042)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 15:04:09 PDT 2025


Author: Vitaly Buka
Date: 2025-04-16T15:04:06-07:00
New Revision: 7623501c056a38c665ccf718ad318fd16451e4cc

URL: https://github.com/llvm/llvm-project/commit/7623501c056a38c665ccf718ad318fd16451e4cc
DIFF: https://github.com/llvm/llvm-project/commit/7623501c056a38c665ccf718ad318fd16451e4cc.diff

LOG: [asan] Fix build on fuchsia (#136042)

Does not link after #131756

Added: 
    

Modified: 
    compiler-rt/lib/asan/asan_report.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/asan_report.cpp b/compiler-rt/lib/asan/asan_report.cpp
index e515f20548c00..8b22aebe7cafc 100644
--- a/compiler-rt/lib/asan/asan_report.cpp
+++ b/compiler-rt/lib/asan/asan_report.cpp
@@ -149,7 +149,9 @@ class ScopedInErrorReport {
     // 2. Subsequent error reporting avoids nested lock acquisition patterns.
     // 3. Eliminates the lock order inversion risk between libdl and ASan's
     //    thread registry.
+#if !SANITIZER_SYMBOLIZER_MARKUP
     Symbolizer::GetOrInit()->GetRefreshedListOfModules();
+#endif
 
     // Make sure the registry and sanitizer report mutexes are locked while
     // we're printing an error report.


        


More information about the llvm-commits mailing list