[PATCH] D85702: Add inliine to always_inline

James Park via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 19:14:30 PDT 2020


jpark37 created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
jpark37 requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85702

Files:
  llvm/include/llvm/Support/Compiler.h


Index: llvm/include/llvm/Support/Compiler.h
===================================================================
--- llvm/include/llvm/Support/Compiler.h
+++ llvm/include/llvm/Support/Compiler.h
@@ -234,7 +234,7 @@
 /// 3.4 supported this but is buggy in various cases and produces unimplemented
 /// errors, just use it in GCC 4.0 and later.
 #if __has_attribute(always_inline) || LLVM_GNUC_PREREQ(4, 0, 0)
-#define LLVM_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline))
+#define LLVM_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline)) inline
 #elif defined(_MSC_VER)
 #define LLVM_ATTRIBUTE_ALWAYS_INLINE __forceinline
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85702.284553.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/55a56a60/attachment.bin>


More information about the llvm-commits mailing list