[clang] [clang] Simplify the overload resolution logic for operator new and new[] (PR #211482)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 23 01:17:11 PDT 2026


================
@@ -10371,7 +10428,7 @@ class Sema final : public SemaBase {
   void DiagnoseUseOfDeletedFunction(SourceLocation Loc, SourceRange Range,
                                     DeclarationName Name,
                                     OverloadCandidateSet &CandidateSet,
-                                    FunctionDecl *Fn, MultiExprArg Args,
+                                    FunctionDecl *Fn, ArrayRef<Expr *> Args,
----------------
cor3ntin wrote:

I'm not sure this change is needed?

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


More information about the cfe-commits mailing list