[clang] [CIR] cir.call with scalar return type (PR #135552)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 17 07:53:08 PDT 2025
================
@@ -18,9 +18,12 @@
using namespace clang;
using namespace clang::CIRGen;
-CIRGenFunctionInfo *CIRGenFunctionInfo::create() {
- // For now we just create an empty CIRGenFunctionInfo.
- CIRGenFunctionInfo *fi = new CIRGenFunctionInfo();
+CIRGenFunctionInfo *CIRGenFunctionInfo::create(CanQualType resultType) {
+ void *buffer = operator new(totalSizeToAlloc<ArgInfo>(1));
----------------
Lancern wrote:
> I realize there are a number of arguments that we don't know yet, but can we switch this to use ::create instead?
Sorry maybe I misunderstood but I'm a bit confused about what you're actually supposing -- Are you suggesting that we should use ASTContext's allocator instead of the `operator new` here?
https://github.com/llvm/llvm-project/pull/135552
More information about the cfe-commits
mailing list