diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-07-08 16:36:29 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-07-08 16:36:29 +0000 |
commit | ba22e8d56d00211ea5f65a78be3c026bb2ebf047 (patch) | |
tree | 23cd2a8b6d23693effafb8781fa964d74da586eb | |
parent | bb625bb2f49a7716efaad5d70e51c949cab666dc (diff) | |
download | bcm5719-llvm-ba22e8d56d00211ea5f65a78be3c026bb2ebf047.tar.gz bcm5719-llvm-ba22e8d56d00211ea5f65a78be3c026bb2ebf047.zip |
Attempt to fix Compiler.h for some self-hosting bots
I tested r185831 by self-hosting clang with a recent clang, and got no
warnings. I haven't been able to reproduce the problem locally.
llvm-svn: 185833
-rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 336c069c507..060d2bda6ca 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/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 |