aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclTemplate.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-20 00:26:28 +0000
committerChris Lattner <sabre@nondot.org>2010-05-20 00:26:28 +0000
commit304d0faa6cac3111074cc400c1c573a6e611872b (patch)
tree14239fa5cf9636fc9d26540fa2d9effd9eefd83b /lib/AST/DeclTemplate.cpp
parent98d279ba8092186f606abaa8298f13a0816b9cf2 (diff)
just add a fixme for the StructuredArgs leak, it shouldn't affect
c++'03 code and variadic support "needs work". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclTemplate.cpp')
-rw-r--r--lib/AST/DeclTemplate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp
index 98c5bb78ff..7dd2aff6fb 100644
--- a/lib/AST/DeclTemplate.cpp
+++ b/lib/AST/DeclTemplate.cpp
@@ -327,6 +327,7 @@ void TemplateArgumentListBuilder::EndPack() {
AddingToPack = false;
+ // FIXME: This is a memory leak!
StructuredArgs = new TemplateArgument[MaxStructuredArgs];
// First copy the flat entries over to the list (if any)