[llvm-branch-commits] [clang] [CIR] Add CIRGen support for static local variables with non-constant initializers (PR #179827)

Bruno Cardoso Lopes via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 10 23:02:56 PST 2026


================
@@ -1592,6 +1594,19 @@ void CIRGenItaniumCXXABI::registerGlobalDtor(const VarDecl *vd,
   // prepare. Nothing to be done for CIR here.
 }
 
+void CIRGenItaniumCXXABI::emitGuardedInit(CIRGenFunction &cgf,
----------------
bcardosolopes wrote:

Good call, it's all done in lowering prepare anyways, fixed.

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


More information about the llvm-branch-commits mailing list