[llvm] r185833 - Attempt to fix Compiler.h for some self-hosting bots

Reid Kleckner reid at kleckner.net
Mon Jul 8 09:36:29 PDT 2013


Author: rnk
Date: Mon Jul  8 11:36:29 2013
New Revision: 185833

URL: http://llvm.org/viewvc/llvm-project?rev=185833&view=rev
Log:
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.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=185833&r1=185832&r2=185833&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Mon Jul  8 11:36:29 2013
@@ -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





More information about the llvm-commits mailing list