mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
Make sure to bump the reference count of the last element in the ParenListExpr representing the direct initializer of a declaration
llvm-svn: 80177
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user