[clang] [CIR] Introduce LocalInitOp, & lower static locals (PR #193576)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 23 09:48:52 PDT 2026
================
@@ -344,8 +344,8 @@ struct LoweringPreparePass
// Emit the initializer and add a global destructor if appropriate.
mlir::Block *insertBlock = builder.getInsertionBlock();
if (!ctorRegion.empty()) {
- if (!ctorRegion.hasOneBlock())
- globalOp->emitError("NYI: ctor region with multiple blocks");
+ assert(ctorRegion.hasOneBlock() &&
----------------
xlauko wrote:
nit: I would put "Enforced by MaxSizedRegion<1>". same few lines below.
https://github.com/llvm/llvm-project/pull/193576
More information about the cfe-commits
mailing list