[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)" (PR #111173)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 12:30:45 PDT 2024
================
@@ -4159,7 +4159,7 @@ FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const {
if (FunctionTemplateSpecializationInfo *Info
= TemplateOrSpecialization
.dyn_cast<FunctionTemplateSpecializationInfo*>()) {
- return Info->getTemplate();
+ return Info->getTemplate()->getMostRecentDecl();
----------------
mizvekov wrote:
Thanks!
https://github.com/llvm/llvm-project/pull/111173
More information about the cfe-commits
mailing list