================ @@ -360,6 +370,16 @@ class TrivialFunctionAnalysisVisitor return TrivialFunctionAnalysis::isTrivialImpl(Callee, Cache); } + bool + VisitSubstNonTypeTemplateParmExpr(const SubstNonTypeTemplateParmExpr *E) { + // Non-type template paramter is trivial if the replacement is trivial. + return Visit(E->getReplacement()); ---------------- haoNoQ wrote:
These might be always trivial? They're compile-time constants after all. https://github.com/llvm/llvm-project/pull/90414 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits