[clang] [CIR] Support single level Cleanup scope (PR #180276)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 10 09:55:52 PST 2026


================
@@ -836,7 +826,8 @@ emitCallLikeOp(CIRGenFunction &cgf, mlir::Location callLoc,
     callOpWithExceptions =
         builder.createCallOp(callLoc, directFuncOp, cirCallArgs);
 
-    cgf.populateCatchHandlersIfRequired(tryOp);
+    if (tryOp)
+      cgf.populateCatchHandlersIfRequired(tryOp);
----------------
AmrDeveloper wrote:

Sure, I will do that @andykaylor 

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


More information about the cfe-commits mailing list