[clang] [clang] Redeclare function templates instances per primary template (PR #110387)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 29 22:54:02 PDT 2024


================
@@ -2146,9 +2147,15 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(
     FunctionDecl *SpecFunc
       = FunctionTemplate->findSpecialization(Innermost, InsertPos);
 
-    // If we already have a function template specialization, return it.
----------------
zyn0217 wrote:

nit: probably preserve the comment

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


More information about the cfe-commits mailing list