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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 23:17:35 PDT 2023


probably you can revert 000aeb2499b1db510f064c37c097a5020215b835 then

On Tue, 16 May 2023 at 23:16, Thurston Dang via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

>
> 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);
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230516/bd01e007/attachment.html>


More information about the llvm-commits mailing list