diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-06-15 17:44:38 +0000 | 
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-06-15 17:44:38 +0000 | 
| commit | 20527e2c8333da70c1a39c55bb383cda88489255 (patch) | |
| tree | 6f3f95f0fa88186fcf2365e352290908dab6cbaf /clang/lib/Sema/SemaTemplate.cpp | |
| parent | de94e66234ae01281078c675096e37479cffa91f (diff) | |
| download | bcm5719-llvm-20527e2c8333da70c1a39c55bb383cda88489255.tar.gz bcm5719-llvm-20527e2c8333da70c1a39c55bb383cda88489255.zip | |
Allocate template parameter lists for out-of-line definitions via the
ASTContext rather than via the normal heap.
llvm-svn: 106008
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 21d5702ea25..234665c4aa7 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -3868,7 +3868,8 @@ Sema::ActOnClassTemplateSpecialization(Scope *S, unsigned TagSpec,                                                         SequenceNumber);      SetNestedNameSpecifier(Partial, SS);      if (NumMatchedTemplateParamLists > 0) { -      Partial->setTemplateParameterListsInfo(NumMatchedTemplateParamLists, +      Partial->setTemplateParameterListsInfo(Context, +                                             NumMatchedTemplateParamLists,                      (TemplateParameterList**) TemplateParameterLists.release());      } @@ -3929,8 +3930,8 @@ Sema::ActOnClassTemplateSpecialization(Scope *S, unsigned TagSpec,                                                  PrevDecl);      SetNestedNameSpecifier(Specialization, SS);      if (NumMatchedTemplateParamLists > 0) { -      Specialization->setTemplateParameterListsInfo( -                    NumMatchedTemplateParamLists, +      Specialization->setTemplateParameterListsInfo(Context, +                                                  NumMatchedTemplateParamLists,                      (TemplateParameterList**) TemplateParameterLists.release());      } | 

