diff options
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 71fb36892b..5e91789083 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -165,6 +165,7 @@ Decl *TemplateDeclInstantiator::VisitVarDecl(VarDecl *D) { FakeCommaLocs.push_back( SemaRef.PP.getLocForEndOfToken(E->getLocEnd())); } + PLE->getExpr(PLE->getNumExprs() - 1)->Retain(); } // Add the direct initializer to the declaration. |