[compiler-rt] lsan: fix macos build after #144604 (PR #144818)

Justin King via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 18:25:12 PDT 2025


https://github.com/jcking updated https://github.com/llvm/llvm-project/pull/144818

>From 549f93173c57b178b76173c7f7da73e4fb5ace1d Mon Sep 17 00:00:00 2001
From: Justin King <jcking at google.com>
Date: Wed, 18 Jun 2025 18:24:52 -0700
Subject: [PATCH] lsan: fix macos build after #144604

Signed-off-by: Justin King <jcking at google.com>
---
 compiler-rt/lib/lsan/lsan_interceptors.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler-rt/lib/lsan/lsan_interceptors.cpp b/compiler-rt/lib/lsan/lsan_interceptors.cpp
index 6da9d0d9d24f8..f9f83f6c0cc45 100644
--- a/compiler-rt/lib/lsan/lsan_interceptors.cpp
+++ b/compiler-rt/lib/lsan/lsan_interceptors.cpp
@@ -146,6 +146,9 @@ INTERCEPTOR(void*, valloc, uptr size) {
   GET_STACK_TRACE_MALLOC;
   return lsan_valloc(size, stack);
 }
+#else
+#  define LSAN_MAYBE_INTERCEPT_FREE_SIZED
+#  define LSAN_MAYBE_INTERCEPT_FREE_ALIGNED_SIZED
 #endif  // !SANITIZER_APPLE
 
 #if SANITIZER_INTERCEPT_MEMALIGN



More information about the llvm-commits mailing list