[all-commits] [llvm/llvm-project] 81d062: [hwasan] Fix -Wunneeded-internal-declaration by de...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Thu Apr 27 20:38:08 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 81d06268f47f089335076eb608c880fc0e60a677
https://github.com/llvm/llvm-project/commit/81d06268f47f089335076eb608c880fc0e60a677
Author: Thurston Dang <thurston at google.com>
Date: 2023-04-28 (Fri, 28 Apr 2023)
Changed paths:
M compiler-rt/lib/hwasan/hwasan_checks.h
Log Message:
-----------
[hwasan] Fix -Wunneeded-internal-declaration by declaring static inline
https://reviews.llvm.org/D149386 caused a buildbot error (https://lab.llvm.org/buildbot#builders/37/builds/21766):
'In file included from /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/hwasan/hwasan_interceptors.cpp:18:
/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/hwasan/hwasan_checks.h:128:53: error: 'static' function 'PossiblyShortTagMatches' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration]
__attribute__((always_inline, nodebug)) static bool PossiblyShortTagMatches('
This patch simply adds the inline annotation.
Differential Revision: https://reviews.llvm.org/D149402
More information about the All-commits
mailing list