diff options
author | DeLesley Hutchins <delesley@google.com> | 2012-02-16 17:30:51 +0000 |
---|---|---|
committer | DeLesley Hutchins <delesley@google.com> | 2012-02-16 17:30:51 +0000 |
commit | dd5756c04c98e354b85c4f7eb660ae60c6d341ec (patch) | |
tree | f532cd13c532c2d2556e9cd0f185974d83d9b6df /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 634b2930f5a8fc4b153437657ce786ca3fba5b1e (diff) |
Minor fix to template instantiation, which properly instantiates
dependent attributes on static members of templatized classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index fb771aa30b..f480825412 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -326,7 +326,7 @@ Decl *TemplateDeclInstantiator::VisitVarDecl(VarDecl *D) { if (Owner->isFunctionOrMethod()) SemaRef.CurrentInstantiationScope->InstantiatedLocal(D, Var); } - SemaRef.InstantiateAttrs(TemplateArgs, D, Var); + SemaRef.InstantiateAttrs(TemplateArgs, D, Var, LateAttrs, StartingScope); // Link instantiations of static data members back to the template from // which they were instantiated. |