[clang] [CIR] Represent Cleanups with Cleanup scopes (PR #180276)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 11:13:02 PST 2026
================
@@ -301,7 +345,19 @@ void CIRGenFunction::popCleanupBlock() {
assert(!cir::MissingFeatures::ehCleanupScopeRequiresEHCleanup());
ehStack.popCleanup();
scope.markEmitted();
+
+ mlir::Block &block = cleanupScope.getCleanupRegion().back();
----------------
andykaylor wrote:
Is `cleanupScope` guaranteed to be non-null here? I would add at least an assert.
https://github.com/llvm/llvm-project/pull/180276
More information about the cfe-commits
mailing list