[clang] [CIR] Inheriting Constructor/inheriting ctor inlining lowering (PR #191467)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 16:47:11 PDT 2026


================
@@ -1344,14 +1344,134 @@ void CIRGenFunction::emitCXXConstructorCall(const clang::CXXConstructorDecl *d,
 
   assert(!cir::MissingFeatures::opCallArgEvaluationOrder());
 
-  emitCallArgs(args, fpt, e->arguments(), e->getConstructor(),
-               /*ParamsToSkip=*/0);
+  if (auto inherited = d->getInheritedConstructor();
----------------
andykaylor wrote:

I don't see anything inherented-ctor-specific at this point in classic codegen. Is that a bug there? Why is this needed? Doesn't the inherited case get handled in the call to emitCXXConstructCall below?

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


More information about the cfe-commits mailing list