[compiler-rt] bc9526e - hwasan: fix buildbot breakage (unused functions)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 23:16:27 PDT 2023


Author: Thurston Dang
Date: 2023-05-17T06:15:23Z
New Revision: bc9526e30d45ccfb2c9c5e064c212d9336fb8e56

URL: https://github.com/llvm/llvm-project/commit/bc9526e30d45ccfb2c9c5e064c212d9336fb8e56
DIFF: https://github.com/llvm/llvm-project/commit/bc9526e30d45ccfb2c9c5e064c212d9336fb8e56.diff

LOG: 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.

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_interceptors.cpp

Removed: 
    


################################################################################
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);


        


More information about the llvm-commits mailing list