[Support] Fix the always_inline attribute macro to not include the
authorChandler Carruth <chandlerc@gmail.com>
Thu, 10 Sep 2015 08:29:30 +0000 (08:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 10 Sep 2015 08:29:30 +0000 (08:29 +0000)
'inline' specifier. That specifier may or may not be valid for a given
function, or it may be required for correct linkage even when the
compiler doesn't support the always_inline attribute.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247252 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index 9f98bc398fec0b195bc7ca8753740ee26b4f88df..f744237e583fb5572d0f632fe5f1b24736b2059e 100644 (file)
 /// 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 inline __attribute__((always_inline))
+#define LLVM_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline))
 #elif defined(_MSC_VER)
 #define LLVM_ATTRIBUTE_ALWAYS_INLINE __forceinline
 #else