diff options
Diffstat (limited to 'compiler-rt/lib/asan/asan_interceptors.h')
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/lib/asan/asan_interceptors.h b/compiler-rt/lib/asan/asan_interceptors.h index f0deea391d0..903ab5991e9 100644 --- a/compiler-rt/lib/asan/asan_interceptors.h +++ b/compiler-rt/lib/asan/asan_interceptors.h @@ -122,14 +122,12 @@ DECLARE_REAL(char*, strstr, const char *s1, const char *s2) #if !SANITIZER_MAC #define ASAN_INTERCEPT_FUNC(name) \ do { \ - INTERCEPT_FUNCTION(name); \ - if (&(name) != &WRAP(name) || !REAL(name)) \ + if ((!INTERCEPT_FUNCTION(name) || !REAL(name))) \ VReport(1, "AddressSanitizer: failed to intercept '" #name "'\n"); \ } while (0) #define ASAN_INTERCEPT_FUNC_VER(name, ver) \ do { \ - INTERCEPT_FUNCTION_VER(name, ver); \ - if (&(name) != &WRAP(name) || !REAL(name)) \ + if ((!INTERCEPT_FUNCTION_VER(name, ver) || !REAL(name))) \ VReport( \ 1, "AddressSanitizer: failed to intercept '" #name "@@" #ver "'\n"); \ } while (0) |