summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-20 00:19:09 +0000
committerChris Lattner <sabre@nondot.org>2010-05-20 00:19:09 +0000
commitce7a22d97ca07ced6df563c5ac7ca643b626139d (patch)
tree4f64ec41ef5d9b81321214d8db88f1dbfd145762 /clang/lib/Sema
parentc9b03bcc5d907103f0eafdae5d2a6938a47f8d11 (diff)
downloadbcm5719-llvm-ce7a22d97ca07ced6df563c5ac7ca643b626139d.tar.gz
bcm5719-llvm-ce7a22d97ca07ced6df563c5ac7ca643b626139d.zip
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
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
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());
OpenPOWER on IntegriCloud