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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72978 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index ecf08ad..d3bfef6 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -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);