[cfe-commits] r72978 - /cfe/trunk/lib/Sema/Sema.h

Eli Friedman eli.friedman at gmail.com
Fri Jun 5 19:08:45 PDT 2009


Author: efriedma
Date: Fri Jun  5 21:08:44 2009
New Revision: 72978

URL: http://llvm.org/viewvc/llvm-project?rev=72978&view=rev
Log:
Default builtin creation to off; we don't really want to be doing it 
without a relevant source location anyway.  Fixes the issue with weird 
warnings when including objc/Object.h on OS X.


Modified:
    cfe/trunk/lib/Sema/Sema.h

Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=72978&r1=72977&r2=72978&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Fri Jun  5 21:08:44 2009
@@ -1047,7 +1047,7 @@
   LookupResult LookupName(Scope *S, DeclarationName Name, 
                           LookupNameKind NameKind, 
                           bool RedeclarationOnly = false,
-                          bool AllowBuiltinCreation = true,
+                          bool AllowBuiltinCreation = false,
                           SourceLocation Loc = SourceLocation());
   LookupResult LookupQualifiedName(DeclContext *LookupCtx, DeclarationName Name,
                                    LookupNameKind NameKind, 
@@ -1056,7 +1056,7 @@
                                 DeclarationName Name,
                                 LookupNameKind NameKind, 
                                 bool RedeclarationOnly = false,
-                                bool AllowBuiltinCreation = true,
+                                bool AllowBuiltinCreation = false,
                                 SourceLocation Loc = SourceLocation());
 
   ObjCProtocolDecl *LookupProtocol(IdentifierInfo *II);





More information about the cfe-commits mailing list