Skip to content

Commit bab429c

Browse files
committed
[PR] fmayer - add description comment
1 parent 870caf7 commit bab429c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,10 @@ INTERCEPTOR(void *, valloc, SIZE_T size) {
464464
}
465465

466466
#if SANITIZER_INTERCEPT_ALIGNED_ALLOC
467+
468+
// 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.
467471
#pragma clang diagnostic push
468472
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
469473
INTERCEPTOR(void *, aligned_alloc, SIZE_T alignment, SIZE_T size) {

0 commit comments

Comments
 (0)