Replace TemplateArgumentListInfo with ASTTemplateArgumentListInfo
and convert between them in some places
Details
- Reviewers
akyrtzi aaron.ballman erichkeane browneee
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
VarTemplateSpecializationDecl held a TemplateArgumentListInfo which holds a SmallVector<TemplateArgumentLoc, 8>, so in this test case https://github.com/llvm/llvm-project/blob/ee1cf1f64519c815025d962bdf9c9bb3d09d7699/clang/test/SemaCXX/has_unique_object_reps_bitint.cpp#L27 where there was a variable template with more than 8 template arguments, it leaked
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | ||
---|---|---|
5561 | The type of VarSpec->getTemplateArgsInfo() changed to ASTTemplateArgumentListInfo which is why the type of VisitVarTemplateSpecializationDecl needed to change |
I was also looking into fixing this: https://reviews.llvm.org/D126944
I'm not yet sure if my changes are correct.
I did a review on https://reviews.llvm.org/D126944, but I'll let the two of you decide which review to move forward with rather than review them both in tandem. :-)
The type of VarSpec->getTemplateArgsInfo() changed to ASTTemplateArgumentListInfo which is why the type of VisitVarTemplateSpecializationDecl needed to change