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 | 6f13b09a009c8a2ced4c60ddf982adcafc4dc7f8 (patch) | |
tree | f63f2caf3d3db28c766e475521d42637dbcc0b49 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | b0d75c2f4e96bf8470121a5d49eca08675912d02 (diff) | |
download | bcm5719-llvm-6f13b09a009c8a2ced4c60ddf982adcafc4dc7f8.tar.gz bcm5719-llvm-6f13b09a009c8a2ced4c60ddf982adcafc4dc7f8.zip |
Minor fix to template instantiation, which properly instantiates
dependent attributes on static members of templatized classes.
llvm-svn: 150704
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index fb771aa30b9..f4808254123 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/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. |