[compiler-rt] f780955 - lsan: fix macos build after #144604 (#144818)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 19 10:38:49 PDT 2025
Author: Justin King
Date: 2025-06-19T18:38:45+01:00
New Revision: f780955e1df9105e9c4e67ebd16efded7dd279e2
URL: https://github.com/llvm/llvm-project/commit/f780955e1df9105e9c4e67ebd16efded7dd279e2
DIFF: https://github.com/llvm/llvm-project/commit/f780955e1df9105e9c4e67ebd16efded7dd279e2.diff
LOG: lsan: fix macos build after #144604 (#144818)
Fixes build failures on macOS, including
https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/
llvm-project/compiler-rt/lib/lsan/lsan_interceptors.cpp:579:3: error: use of undeclared identifier 'LSAN_MAYBE_INTERCEPT_FREE_SIZED'
13:23:58 579 | LSAN_MAYBE_INTERCEPT_FREE_SIZED;
13:23:58 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13:23:58 /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/lsan/lsan_interceptors.cpp:580:3: error: use of undeclared identifier 'LSAN_MAYBE_INTERCEPT_FREE_ALIGNED_SIZED'
13:23:58 580 | LSAN_MAYBE_INTERCEPT_FREE_ALIGNED_SIZED;
13:23:58 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13:23:58 2 errors generated.
Added:
Modified:
compiler-rt/lib/lsan/lsan_interceptors.cpp
Removed:
################################################################################
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