aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Compiler.h
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-07-08 16:36:29 +0000
committerReid Kleckner <reid@kleckner.net>2013-07-08 16:36:29 +0000
commita2030eedf1094ef8508ca90341c5a7ec8f638308 (patch)
tree6a2c88c84c208d0b635efd43ad64259b08820f00 /include/llvm/Support/Compiler.h
parent35637fc6233c3ee275d497286241795986b6e432 (diff)
downloadexternal_llvm-a2030eedf1094ef8508ca90341c5a7ec8f638308.zip
external_llvm-a2030eedf1094ef8508ca90341c5a7ec8f638308.tar.gz
external_llvm-a2030eedf1094ef8508ca90341c5a7ec8f638308.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Compiler.h')
-rw-r--r--include/llvm/Support/Compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 336c069..060d2bd 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