diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 336c069c507..060d2bda6ca 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -201,7 +201,7 @@ #define LLVM_ATTRIBUTE_WEAK #endif -#if __has_attribute(const) || defined(__GNUC__) +#if __has_attribute(__const__) || defined(__GNUC__) // aka 'CONST' but following LLVM Conventions. #define LLVM_READNONE __attribute__((__const__)) #else