================ @@ -3403,16 +3405,20 @@ bool FunctionDecl::isReplaceableGlobalAllocationFunction( if (!getDeclContext()->getRedeclContext()->isTranslationUnit()) return false; + bool IsTypeAware = isTypeAwareOperatorNewOrDelete(); + unsigned MaxParamCount = IsTypeAware + 4; ---------------- cor3ntin wrote:
Maybe a comment explaining the `4` here https://github.com/llvm/llvm-project/pull/113510 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits