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