[clang] [CIR] Add structured CatchParamOp (PR #165110)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 5 15:40:28 PST 2025


================
@@ -5134,6 +5134,34 @@ def CIR_TryOp : CIR_Op<"try",[
   let hasLLVMLowering = false;
 }
 
+//===----------------------------------------------------------------------===//
+// CatchParamOp
+//===----------------------------------------------------------------------===//
+
+def CIR_CatchParamOp : CIR_Op<"catch_param", [HasParent<"cir::TryOp">]> {
+  let summary = "Represents the catch clause formal parameter";
+  let description = [{
+    The `cir.catch_param` used to retrieves the exception object inside
----------------
andykaylor wrote:

```suggestion
    The `cir.catch_param` is used to retrieves the exception object inside
```

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


More information about the cfe-commits mailing list