================ @@ -9759,7 +9759,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, SmallVector<TemplateParameterList *, 4> TemplateParamLists; llvm::append_range(TemplateParamLists, TemplateParamListsRef); if (TemplateParameterList *Invented = D.getInventedTemplateParameterList()) { - if (!TemplateParamLists.empty() && + if (!TemplateParamLists.empty() && TemplateParamLists.back()->size() && ---------------- erichkeane wrote:
Ah, urgh, i hate 'sorta vector' types. Yeah, i think 'empty' makes a lot of sense, it improves the readability a ton in a situation like this. https://github.com/llvm/llvm-project/pull/80864 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits