From ce7a22d97ca07ced6df563c5ac7ca643b626139d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 20 May 2010 00:19:09 +0000 Subject: fix the TemplateArgumentList copy constructor to not be a copy constructor (since it isn't one semantically) and fix the ownership bits it sets to be correct! llvm-svn: 104192 --- clang/lib/Sema/SemaTemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaTemplate.cpp') diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 5c908a00f68..91ef67e1c9a 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -4349,7 +4349,7 @@ Sema::CheckFunctionTemplateSpecialization(FunctionDecl *FD, // specialization. FD->setFunctionTemplateSpecialization(Specialization->getPrimaryTemplate(), new (Context) TemplateArgumentList( - *Specialization->getTemplateSpecializationArgs()), + Specialization->getTemplateSpecializationArgs()), /*InsertPos=*/0, SpecInfo->getTemplateSpecializationKind()); -- cgit v1.2.3