[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)" (PR #111173)

Krystian Stasiowski via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 7 09:35:29 PDT 2024


================
@@ -4159,7 +4159,7 @@ FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const {
   if (FunctionTemplateSpecializationInfo *Info
         = TemplateOrSpecialization
             .dyn_cast<FunctionTemplateSpecializationInfo*>()) {
-    return Info->getTemplate();
+    return Info->getTemplate()->getMostRecentDecl();
----------------
sdkrystian wrote:

CC @zyn0217 & @erichkeane 

https://github.com/llvm/llvm-project/pull/111173


More information about the cfe-commits mailing list