[clang] [CIR] Upstream support for calling constructors (PR #143579)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 10 12:13:56 PDT 2025


================
@@ -141,6 +190,44 @@ arrangeFreeFunctionLikeCall(CIRGenTypes &cgt, CIRGenModule &cgm,
   return cgt.arrangeCIRFunctionInfo(retType, argTypes, required);
 }
 
+/// Arrange a call to a C++ method, passing the given arguments.
+///
+/// passProtoArgs indicates whether `args` has args for the parameters in the
+/// given CXXConstructorDecl.
+const CIRGenFunctionInfo &CIRGenTypes::arrangeCXXConstructorCall(
+    const CallArgList &args, const CXXConstructorDecl *d, CXXCtorType ctorKind,
+    bool passProtoArgs) {
+
+  // FIXME: Kill copy.
----------------
erichkeane wrote:

Ah... Its kind of frustrating to see these FIXME's last as long as they do, then get propagated into the new lowering like this.  I guess I can live with it (as we have for years), but we gotta stop letting these FIXMEs last as long as they do:/

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


More information about the cfe-commits mailing list