diff options
| author | John McCall <rjmccall@apple.com> | 2012-05-07 06:16:58 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2012-05-07 06:16:58 +0000 |
| commit | 6347b68fd95ba302d095078a39a2a3e371c708d3 (patch) | |
| tree | d0bebad522eb1a997b1a8efdb79844ec1d3f1265 /clang/lib/Sema/SemaAccess.cpp | |
| parent | 42f8db9070a48515604d7026e5484c939184f334 (diff) | |
| download | bcm5719-llvm-6347b68fd95ba302d095078a39a2a3e371c708d3.tar.gz bcm5719-llvm-6347b68fd95ba302d095078a39a2a3e371c708d3.zip | |
Change how we suppress access control in explicit instantiations
so that we actually accumulate all the delayed diagnostics. Do
this so that we can restore those diagnostics to good standing
if it turns out that we were wrong to suppress, e.g. if the
tag specifier is actually an elaborated type specifier and not
a declaration.
llvm-svn: 156291
Diffstat (limited to 'clang/lib/Sema/SemaAccess.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaAccess.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaAccess.cpp b/clang/lib/Sema/SemaAccess.cpp index 13bb6dc7dbb..49e59001d2f 100644 --- a/clang/lib/Sema/SemaAccess.cpp +++ b/clang/lib/Sema/SemaAccess.cpp @@ -1391,9 +1391,6 @@ static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc, if (Entity.getAccess() == AS_public) return Sema::AR_accessible; - if (S.SuppressAccessChecking) - return Sema::AR_accessible; - // If we're currently parsing a declaration, we may need to delay // access control checking, because our effective context might be // different based on what the declaration comes out as. |

