================
@@ -2664,6 +2664,10 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool 
UseGlobal,
     }
   }
 
+  if (OperatorDelete && !OperatorDelete->isReservedGlobalPlacementOperator() &&
+      Initializer && (getLangOpts().Exceptions || getLangOpts().CXXExceptions))
----------------
efriedma-quic wrote:

This seems roughly right... but the side-effects seem significant enough that 
we should land it separately.

Do we really need the check for whether exceptions are enabled here?  I'd 
prefer to keep the AST as similar as possible in different modes.

https://github.com/llvm/llvm-project/pull/175816
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to