[clang] [CIR] Upstream support for emitting constructors (PR #143639)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 09:24:23 PDT 2025
================
@@ -21,6 +21,88 @@
using namespace clang;
using namespace clang::CIRGen;
+/// Checks whether the given constructor is a valid subject for the
+/// complete-to-base constructor delgation optimization, i.e. emitting the
+/// complete constructor as a simple call to the base constructor.
----------------
andykaylor wrote:
To see this happen from Compiler Explorer, you need to pass `-Xclang -mno-constructor-aliases`. Otherwise, we end up just not emitting the C1 constructor at all in cases where it would call the C2 constructor.
https://github.com/llvm/llvm-project/pull/143639
More information about the cfe-commits
mailing list