================ @@ -18112,7 +18112,8 @@ void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func, if (FirstInstantiation || TSK != TSK_ImplicitInstantiation || Func->isConstexpr()) { - if (isa<CXXRecordDecl>(Func->getDeclContext()) && + if (!Func->isConstexpr() && ---------------- mizvekov wrote:
Nit: Slight simplification, you might as well move this branch after the `else if (Func->isConstexpr())` below instead of testing it's negation. https://github.com/llvm/llvm-project/pull/95660 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits