[clang] [CIR] cir.call with scalar return type (PR #135552)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 16 06:37:47 PDT 2025


================
@@ -303,14 +305,23 @@ const CIRGenFunctionInfo &CIRGenTypes::arrangeCIRFunctionInfo() {
   assert(!cir::MissingFeatures::opCallCallConv());
 
   // Construction the function info. We co-allocate the ArgInfos.
-  fi = CIRGenFunctionInfo::create();
+  fi = CIRGenFunctionInfo::create(returnType);
----------------
Lancern wrote:

Yes, stuff in `functionInfos` are leaked. I updated `~CIRGenType()` and included cleanup code there.

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


More information about the cfe-commits mailing list