diff options
author | Thurston Dang <thurston@google.com> | 2023-05-17 06:15:23 +0000 |
---|---|---|
committer | Thurston Dang <thurston@google.com> | 2023-05-17 06:15:23 +0000 |
commit | bc9526e30d45ccfb2c9c5e064c212d9336fb8e56 (patch) | |
tree | ee9e006194a79a13c882ac29e69c46ede53af891 /compiler-rt | |
parent | 000aeb2499b1db510f064c37c097a5020215b835 (diff) | |
download | llvm-bc9526e30d45ccfb2c9c5e064c212d9336fb8e56.tar.gz |
hwasan: fix buildbot breakage (unused functions)
This addresses another buildbot breakage:
https://lab.llvm.org/buildbot/#/builders/37/builds/22166
My patch, https://reviews.llvm.org/D150708 introduced
stubs for common interceptor macros; these had unused
variables and functions. An earlier patch fixed the
unused variables; this patch suppresses unused-functions
warnings.
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/hwasan/hwasan_interceptors.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp index 57df79d15123..3c597623333c 100644 --- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp +++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp @@ -416,6 +416,10 @@ void InitializeInterceptors() { static int inited = 0; CHECK_EQ(inited, 0); + (void)(InitializeCommonInterceptors); + (void)(read_iovec); + (void)(write_iovec); + # if HWASAN_WITH_INTERCEPTORS # if defined(__linux__) INTERCEPT_FUNCTION(__libc_longjmp); |