[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)" (PR #111173)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 09:08:24 PDT 2024
================
@@ -4159,7 +4159,7 @@ FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const {
if (FunctionTemplateSpecializationInfo *Info
= TemplateOrSpecialization
.dyn_cast<FunctionTemplateSpecializationInfo*>()) {
- return Info->getTemplate();
+ return Info->getTemplate()->getMostRecentDecl();
----------------
erichkeane wrote:
Most recent guarantees you have 'the most' information about the declaration, but there might be value in getting the definition if available, else most recent?
https://github.com/llvm/llvm-project/pull/111173
More information about the cfe-commits
mailing list