summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-01-27 01:50:18 +0000
committerJohn McCall <rjmccall@apple.com>2010-01-27 01:50:18 +0000
commit58cc69d4c15169e49733313221ec63f1b61efb41 (patch)
tree0a80bb496433573ee1279b264eee20d9043b3ab9 /clang/lib/Sema/SemaDecl.cpp
parent820a318c5512b0560c070eda6f07e3bca3679824 (diff)
downloadbcm5719-llvm-58cc69d4c15169e49733313221ec63f1b61efb41.tar.gz
bcm5719-llvm-58cc69d4c15169e49733313221ec63f1b61efb41.zip
Implement access control for overloaded functions. Suppress access control
diagnostics in "early" lookups, such as during typename checks and when building unresolved lookup expressions. llvm-svn: 94647
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 876fcb32bae..398c156f9b5 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -135,6 +135,7 @@ Sema::TypeTy *Sema::getTypeName(IdentifierInfo &II, SourceLocation NameLoc,
case LookupResult::NotFoundInCurrentInstantiation:
case LookupResult::FoundOverloaded:
case LookupResult::FoundUnresolvedValue:
+ Result.suppressDiagnostics();
return 0;
case LookupResult::Ambiguous:
OpenPOWER on IntegriCloud