Skip to content

Commit b2cd641

Browse files
committed
[PR] fmayer - try to clarify weakly linked aligned_alloc
1 parent bab429c commit b2cd641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ INTERCEPTOR(void *, valloc, SIZE_T size) {
466466
#if SANITIZER_INTERCEPT_ALIGNED_ALLOC
467467

468468
// In some cases, when targeting older Darwin versions, this warning may pop up.
469-
// We know that aligned_alloc will never be called on older systems because the
470-
// client OSX won't provide it, so we can ignore guarding the call.
469+
// We know that the real aligned_alloc will never be called on older systems
470+
// because it will be weakly linked by us and the client OSX won't provide it.
471471
#pragma clang diagnostic push
472472
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
473473
INTERCEPTOR(void *, aligned_alloc, SIZE_T alignment, SIZE_T size) {

0 commit comments

Comments
 (0)