diff --git a/compiler-rt/lib/lsan/lsan_common.h b/compiler-rt/lib/lsan/lsan_common.h --- a/compiler-rt/lib/lsan/lsan_common.h +++ b/compiler-rt/lib/lsan/lsan_common.h @@ -108,7 +108,6 @@ void RunCallbackForEachThreadLocked(__sanitizer::ThreadRegistry::ThreadCallback cb, void *arg); -void FinishThreadLocked(u32 tid); //// -------------------------------------------------------------------------- //// Allocator prototypes. diff --git a/compiler-rt/lib/lsan/lsan_fuchsia.cpp b/compiler-rt/lib/lsan/lsan_fuchsia.cpp --- a/compiler-rt/lib/lsan/lsan_fuchsia.cpp +++ b/compiler-rt/lib/lsan/lsan_fuchsia.cpp @@ -110,7 +110,7 @@ // On success, there is nothing to do here. if (error != thrd_success) { // Clean up the thread registry for the thread creation that didn't happen. - FinishThreadLocked(tid); + GetLsanThreadRegistryLocked()->FinishThread(tid); } } diff --git a/compiler-rt/lib/lsan/lsan_thread.cpp b/compiler-rt/lib/lsan/lsan_thread.cpp --- a/compiler-rt/lib/lsan/lsan_thread.cpp +++ b/compiler-rt/lib/lsan/lsan_thread.cpp @@ -92,8 +92,4 @@ GetLsanThreadRegistryLocked()->RunCallbackForEachThreadLocked(cb, arg); } -void FinishThreadLocked(u32 tid) { - GetLsanThreadRegistryLocked()->FinishThread(tid); -} - } // namespace __lsan