[compiler-rt] 3137b6a - [lsan] Make ReportUnsuspendedThreads return bool also for Fuchsia

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 02:20:08 PDT 2024


Author: Hans Wennborg
Date: 2024-10-07T11:19:32+02:00
New Revision: 3137b6a263d2549a520690606e286ab4c8e3c9e5

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

LOG: [lsan] Make ReportUnsuspendedThreads return bool also for Fuchsia

Follow-up to 9766ce4db57212646f135fe7033972a7a51aef4d

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 966e74d7ffbb52..438aa3a85f6724 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -698,7 +698,9 @@ void LeakSuppressionContext::PrintMatchedSuppressions() {
 
 // Fuchsia provides a libc interface that guarantees all threads are
 // covered, and SuspendedThreadList is never really used.
-static void ReportUnsuspendedThreads(const SuspendedThreadsList &) {}
+static bool ReportUnsuspendedThreads(const SuspendedThreadsList &) {
+  return true;
+}
 
 #  else  // !SANITIZER_FUCHSIA
 


        


More information about the llvm-commits mailing list