diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index efd978f4a1f..9ff78173c96 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -84,8 +84,9 @@ // unimplemented errors, just use it in GCC 4.0 and later. #if __GNUC__ > 3 #define ALWAYS_INLINE __attribute__((always_inline)) +#elif defined(_MSC_VER) +#define ALWAYS_INLINE __forceinline #else -// TODO: No idea how to do this with MSVC. #define ALWAYS_INLINE #endif