From 3d93790b2e4e657ddb9faa1f1e7c628b938cf362 Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Wed, 7 May 2025 12:29:28 -0700 Subject: [PATCH] [lsan][Fuchsia] Define EarlySanitizerInit for standalone lsan I forgot to add this definition in https://github.com/llvm/llvm-project/pull/131886. --- compiler-rt/lib/lsan/lsan_fuchsia.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler-rt/lib/lsan/lsan_fuchsia.cpp b/compiler-rt/lib/lsan/lsan_fuchsia.cpp index ba59bc9b71e33..bb5de89b56729 100644 --- a/compiler-rt/lib/lsan/lsan_fuchsia.cpp +++ b/compiler-rt/lib/lsan/lsan_fuchsia.cpp @@ -21,6 +21,11 @@ using namespace __lsan; +namespace __sanitizer { +// LSan doesn't need to do anything else special in the startup hook. +void EarlySanitizerInit() {} +} // namespace __sanitizer + namespace __lsan { void LsanOnDeadlySignal(int signo, void *siginfo, void *context) {}