Attempt to fix Compiler.h for some self-hosting bots
authorReid Kleckner <reid@kleckner.net>
Mon, 8 Jul 2013 16:36:29 +0000 (16:36 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 8 Jul 2013 16:36:29 +0000 (16:36 +0000)
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

include/llvm/Support/Compiler.h

index 336c069c5076a2b4a879bab0a5c34226d99d4457..060d2bda6ca742f2f91ca0808c5894bcd93f9eed 100644 (file)
 #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