commit | c84ca3ac72c0fee79ef5e30ce3a58a707e93d5ff | [log] [tgz] |
---|---|---|
author | Douglas Gregor <doug.gregor@gmail.com> | Wed Aug 26 23:26:04 2009 +0000 |
committer | Douglas Gregor <doug.gregor@gmail.com> | Wed Aug 26 23:26:04 2009 +0000 |
tree | 7e25d19369fcc7c950f52dc48c8e53dac7e42ee4 | |
parent | 3f69b7a7353927a0338b1e02672548404f379627 [diff] [blame] |
Make sure to bump the reference count of the last element in the ParenListExpr representing the direct initializer of a declaration git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80177 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 71fb368..5e91789 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -165,6 +165,7 @@ FakeCommaLocs.push_back( SemaRef.PP.getLocForEndOfToken(E->getLocEnd())); } + PLE->getExpr(PLE->getNumExprs() - 1)->Retain(); } // Add the direct initializer to the declaration.