[clang] [CIR] Add builtin operator new/delete (PR #168578)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 18 11:30:18 PST 2025


================
@@ -1476,6 +1476,9 @@ class CIRGenFunction : public CIRGenTypeCache {
 
   RValue emitCXXPseudoDestructorExpr(const CXXPseudoDestructorExpr *expr);
 
+  RValue emitNewOrDeleteBuiltinCall(const FunctionProtoType *type,
+                                    const CallExpr *call, bool isDelete);
----------------
xlauko wrote:

```suggestion
  RValue emitNewOrDeleteBuiltinCall(const FunctionProtoType *type,
                                    const CallExpr *callExpr, bool isDelete);
```

or use just `call` in definition

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


More information about the cfe-commits mailing list