summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-06-06 02:08:44 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-06-06 02:08:44 +0000
commit2696b1e25ece4d8ab948f85e98222411ce692f57 (patch)
treef18ee84efcbf5bbc3e61e44d4521e520cdf888bd /clang
parent30018a68609fa04c12c52da5f12164ec53e16943 (diff)
downloadbcm5719-llvm-2696b1e25ece4d8ab948f85e98222411ce692f57.tar.gz
bcm5719-llvm-2696b1e25ece4d8ab948f85e98222411ce692f57.zip
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. llvm-svn: 72978
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/Sema.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index ecf08ad7fea..d3bfef67cbc 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -1047,7 +1047,7 @@ public:
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 @@ public:
DeclarationName Name,
LookupNameKind NameKind,
bool RedeclarationOnly = false,
- bool AllowBuiltinCreation = true,
+ bool AllowBuiltinCreation = false,
SourceLocation Loc = SourceLocation());
ObjCProtocolDecl *LookupProtocol(IdentifierInfo *II);
OpenPOWER on IntegriCloud