[clang] [CIR] Emit init of local variables (PR #130164)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 6 12:38:59 PST 2025
================
@@ -94,10 +203,59 @@ void CIRGenFunction::emitVarDecl(const VarDecl &d) {
assert(d.hasLocalStorage());
- assert(!cir::MissingFeatures::opAllocaVarDeclContext());
+ CIRGenFunction::VarDeclContext varDeclCtx{*this, &d};
return emitAutoVarDecl(d);
}
+void CIRGenFunction::emitScalarInit(const Expr *init, mlir::Location loc,
+ LValue lvalue, bool capturedByInit) {
+ Qualifiers::ObjCLifetime lifetime = Qualifiers::ObjCLifetime::OCL_None;
----------------
andykaylor wrote:
That's not implemented yet. CIR has its own LValue class, and getObjCLifetime() hasn't been added there.
https://github.com/llvm/llvm-project/pull/130164
More information about the cfe-commits
mailing list