[clang] Initial implementation of P2719 (PR #113510)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 25 09:54:57 PDT 2024


================
@@ -3358,6 +3358,12 @@ bool FunctionDecl::isReservedGlobalPlacementOperator() const {
     return false;
 
   const auto *proto = getType()->castAs<FunctionProtoType>();
+  if (proto->getNumParams() < 2)
+    return false;
+  bool IsTypeAwareAllocator =
----------------
erichkeane wrote:

is this bool used anywhere but in the 'return false' below?  If so, we probably don't need it.

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


More information about the cfe-commits mailing list