[compiler-rt] f001e50 - [lsan] Fix build for Fuchsia after D140039

Alex Brachet via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 16:48:17 PST 2023


Author: Alex Brachet
Date: 2023-01-13T00:47:46Z
New Revision: f001e50f955c3cdf2deb79e38a9fd19c9a781882

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

LOG: [lsan] Fix build for Fuchsia after D140039

Added: 
    

Modified: 
    compiler-rt/lib/lsan/lsan_common_fuchsia.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/lsan/lsan_common_fuchsia.cpp b/compiler-rt/lib/lsan/lsan_common_fuchsia.cpp
index ac2eddf9cc9d..551594ba137d 100644
--- a/compiler-rt/lib/lsan/lsan_common_fuchsia.cpp
+++ b/compiler-rt/lib/lsan/lsan_common_fuchsia.cpp
@@ -12,6 +12,7 @@
 //===---------------------------------------------------------------------===//
 
 #include "lsan_common.h"
+#include "lsan_thread.h"
 #include "sanitizer_common/sanitizer_platform.h"
 
 #if CAN_SANITIZE_LEAKS && SANITIZER_FUCHSIA
@@ -146,7 +147,7 @@ void LockStuffAndStopTheWorld(StopTheWorldCallback callback,
         // just for the allocator cache, and to call ForEachExtraStackRange,
         // which ASan needs.
         if (flags()->use_stacks) {
-          RunCallbackForEachThreadLocked(
+          GetLsanThreadRegistryLocked()->RunCallbackForEachThreadLocked(
               [](ThreadContextBase *tctx, void *arg) {
                 ForEachExtraStackRange(tctx->os_id, ForEachExtraStackRangeCb,
                                        arg);


        


More information about the llvm-commits mailing list