diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-29 17:48:08 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-29 17:48:08 +0000 |
commit | 6282b215ccfd20f9dce63e97fbb08945c2dccb7d (patch) | |
tree | ddf0b7525120cf7fdac33c16b480902fa9171198 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | a52f48412dd544816d308b6279ab51eb3f0b39f4 (diff) | |
download | bcm5719-llvm-6282b215ccfd20f9dce63e97fbb08945c2dccb7d.tar.gz bcm5719-llvm-6282b215ccfd20f9dce63e97fbb08945c2dccb7d.zip |
Revert r236063 due to regression with -fdelayed-template-parsing.
llvm-svn: 236134
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 57faa1cbad8..8f2e95a6152 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -1302,19 +1302,11 @@ Decl *TemplateDeclInstantiator::VisitCXXRecordDecl(CXXRecordDecl *D) { // DR1484 clarifies that the members of a local class are instantiated as part // of the instantiation of their enclosing entity. if (D->isCompleteDefinition() && D->isLocalClass()) { - Sema::SavePendingLocalImplicitInstantiationsRAII - SavedPendingLocalImplicitInstantiations(SemaRef); - SemaRef.InstantiateClass(D->getLocation(), Record, D, TemplateArgs, TSK_ImplicitInstantiation, /*Complain=*/true); - SemaRef.InstantiateClassMembers(D->getLocation(), Record, TemplateArgs, TSK_ImplicitInstantiation); - - // This class may have local implicit instantiations that need to be - // performed within this scope. - SemaRef.PerformPendingInstantiations(/*LocalOnly=*/true); } SemaRef.DiagnoseUnusedNestedTypedefs(Record); |