[clang] [CIR] Handle landing pads in nested regions in EHABILowering (PR #230509)

Konstantinos Parasyris via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 9 10:52:19 PDT 2026


================
@@ -4929,6 +4927,10 @@ mlir::LogicalResult CIRToLLVMResumeFlatOpLowering::matchAndRewrite(
 mlir::LogicalResult CIRToLLVMEhTypeIdOpLowering::matchAndRewrite(
     cir::EhTypeIdOp op, OpAdaptor adaptor,
     mlir::ConversionPatternRewriter &rewriter) const {
+  if (op->getParentOfType<mlir::omp::ParallelOp>())
+    return op.emitError("catching a specific exception type inside an OpenMP "
+                        "parallel region is not yet implemented");
+
----------------
koparasy wrote:

Should we check here for `mlir::omp::OutlineableOpenMPOpInterface` so we apply the NIY in other cases as well?

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


More information about the cfe-commits mailing list