Skip to content

Commit f780955

Browse files
authored
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.
1 parent 0b8179b commit f780955

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/lsan/lsan_interceptors.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ INTERCEPTOR(void*, valloc, uptr size) {
146146
GET_STACK_TRACE_MALLOC;
147147
return lsan_valloc(size, stack);
148148
}
149+
#else
150+
# define LSAN_MAYBE_INTERCEPT_FREE_SIZED
151+
# define LSAN_MAYBE_INTERCEPT_FREE_ALIGNED_SIZED
149152
#endif // !SANITIZER_APPLE
150153

151154
#if SANITIZER_INTERCEPT_MEMALIGN

0 commit comments

Comments
 (0)