[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:55 PDT 2025


================
@@ -76,6 +83,48 @@ static void appendParameterTypes(const CIRGenTypes &cgt,
   cgt.getCGModule().errorNYI("appendParameterTypes: hasExtParameterInfos");
 }
 
+const CIRGenFunctionInfo &
+CIRGenTypes::arrangeCXXStructorDeclaration(GlobalDecl gd) {
+  auto *md = cast<CXXMethodDecl>(gd.getDecl());
+
+  llvm::SmallVector<CanQualType, 16> argTypes;
+  argTypes.push_back(deriveThisType(md->getParent(), md));
+
+  bool passParams = true;
----------------
erichkeane wrote:

Ah, hrmph... Can we set it there ANYWAY, despite doing an NYI?

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


More information about the cfe-commits mailing list