[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:05 PST 2026


================
@@ -113,6 +114,8 @@ class alignas(EHScopeStack::ScopeStackAlignment) EHCleanupScope
   /// from this index onwards belong to this scope.
   unsigned fixupDepth = 0;
 
+  cir::CleanupScopeOp cleanupScope;
----------------
andykaylor wrote:

The naming here is a bit awkward. You have `cleanupScope` inside a `EHCleanupScope` object. Perhaps `cleanupScopeOp` would be a better name?

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


More information about the cfe-commits mailing list