aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-15 17:44:38 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-15 17:44:38 +0000
commitc722ea4fbf886d6460b256b5e819a4ee751d5fff (patch)
treecea324555f88ac0ae9013f3df472421992063846 /lib/Sema/SemaTemplate.cpp
parent7cf84d66965a7706004d8590b5af5fe54b85f525 (diff)
Allocate template parameter lists for out-of-line definitions via the
ASTContext rather than via the normal heap. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index 21d5702ea2..234665c4aa 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/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());
}