[llvm-dev] MSVC warning noise on "LLVM_ATTRIBUTE_ALWAYS_INLINE inline void foo()"

Johan Engelen via llvm-dev llvm-dev at lists.llvm.org
Sun Dec 20 08:18:35 PST 2015


Hi all,
  Some functions have "inline" specified twice by use of
LLVM_ATTRIBUTE_ALWAYS_INLINE.
For example in StringRef.h:
  LLVM_ATTRIBUTE_ALWAYS_INLINE
  inline bool operator==(StringRef LHS, StringRef RHS);

This results in warning noise when compiled with MSVC 2015:
  \include\llvm/ADT/StringRef.h(567): warning C4141: 'inline': used more
than once
  \include\llvm/ADT/StringRef.h(572): warning C4141: 'inline': used more
than once
  \include\llvm/IR/User.h(43): warning C4141: 'inline': used more than once

Thanks very much for a fix.
(I hope that simply removing the "inline"
after LLVM_ATTRIBUTE_ALWAYS_INLINE is correct)

Kind regards,
  Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151220/8ea4526d/attachment.html>


More information about the llvm-dev mailing list