summaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorThurston Dang <thurston@google.com>2023-05-17 06:15:23 +0000
committerThurston Dang <thurston@google.com>2023-05-17 06:15:23 +0000
commitbc9526e30d45ccfb2c9c5e064c212d9336fb8e56 (patch)
treeee9e006194a79a13c882ac29e69c46ede53af891 /compiler-rt
parent000aeb2499b1db510f064c37c097a5020215b835 (diff)
downloadllvm-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.cpp4
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);