[clang] [CIR] Add support for member initialization from constructors (PR #144583)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 18 14:56:40 PDT 2025
================
@@ -84,6 +200,34 @@ Address CIRGenFunction::loadCXXThisAddress() {
return Address(loadCXXThis(), cxxThisAlignment);
}
+void CIRGenFunction::emitInitializerForField(FieldDecl *field, LValue lhs,
+ Expr *init) {
+ QualType fieldType = field->getType();
+ switch (getEvaluationKind(fieldType)) {
+ case cir::TEK_Scalar:
+ if (lhs.isSimple()) {
----------------
bcardosolopes wrote:
Get rid of extra curly braces here.
https://github.com/llvm/llvm-project/pull/144583
More information about the cfe-commits
mailing list