================
@@ -3384,7 +3386,7 @@ bool FunctionDecl::isReservedGlobalPlacementOperator() 
const {
   return (proto->getParamType(1).getCanonicalType() == Context.VoidPtrTy);
 }
 
-bool FunctionDecl::isReplaceableGlobalAllocationFunction(
+bool FunctionDecl::isConstEvalSafeOrReplaceableGlobalAllocationFunction(
----------------
cor3ntin wrote:

```suggestion
bool 
FunctionDecl::isUsableAsReplaceableGlobalAllocationFunctionInConstantEvaluation(
```

Maybe something like that (lets avoid `consteval`) - it's a mouthful but I 
don't have better.
maybe `Replaceable` is superfluous

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

Reply via email to