Skip to content

Conversation

@PiJoules
Copy link
Contributor

@PiJoules PiJoules commented May 7, 2025

I forgot to add this definition in #131886.

@llvmbot
Copy link
Member

llvmbot commented May 7, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: None (PiJoules)

Changes

I forgot to add this definition in #131886.


Full diff: https://github.com/llvm/llvm-project/pull/138946.diff

1 Files Affected:

  • (modified) compiler-rt/lib/lsan/lsan_fuchsia.cpp (+5)
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) {}

@PiJoules PiJoules merged commit 1d073fd into llvm:main May 7, 2025
11 of 13 checks passed
@PiJoules PiJoules deleted the EarlySanitizerInit-lsan-standalone branch May 7, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants