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/Sema.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/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index ca3e233cb7e..5017c2cdf56 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -99,7 +99,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, ObjCShouldCallSuperDealloc(false), ObjCShouldCallSuperFinalize(false), TUKind(TUKind), - NumSFINAEErrors(0), InFunctionDeclarator(0), SuppressAccessChecking(false), + NumSFINAEErrors(0), InFunctionDeclarator(0), AccessCheckingSFINAE(false), InNonInstantiationSFINAEContext(false), NonInstantiationEntries(0), ArgumentPackSubstitutionIndex(-1), CurrentInstantiationScope(0), TyposCorrected(0), |