[PATCH] D126937: Fix memleak in VarTemplateSpecializationDecl
Mital Ashok via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 2 19:33:19 PDT 2022
MitalAshok added inline comments.
================
Comment at: clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:5561
Var = cast_or_null<VarDecl>(Instantiator.VisitVarTemplateSpecializationDecl(
VarSpec->getSpecializedTemplate(), Def, VarSpec->getTemplateArgsInfo(),
VarSpec->getTemplateArgs().asArray(), VarSpec));
----------------
The type of VarSpec->getTemplateArgsInfo() changed to ASTTemplateArgumentListInfo which is why the type of VisitVarTemplateSpecializationDecl needed to change
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126937/new/
https://reviews.llvm.org/D126937
More information about the cfe-commits
mailing list