File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/clang/CIR/Dialect/IR Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4371,14 +4371,14 @@ def CIR_TryOp : CIR_Op<"try",[
43714371
43724372 let regions = (region
43734373 AnyRegion:$try_region,
4374- VariadicRegion<MinSizedRegion<1>>:$catch_regions
4374+ VariadicRegion<MinSizedRegion<1>>:$handlers
43754375 );
43764376
43774377 let assemblyFormat = [{
43784378 (`synthetic` $synthetic^)?
43794379 (`cleanup` $cleanup^)?
43804380 $try_region
4381- custom<CatchRegions>($catch_regions , $catch_types)
4381+ custom<CatchRegions>($handlers , $catch_types)
43824382 attr-dict
43834383 }];
43844384
Original file line number Diff line number Diff line change @@ -2931,8 +2931,8 @@ void cir::TryOp::getSuccessorRegions(
29312931
29322932 // TODO(CIR): If we know a target function never throws a specific type, we
29332933 // can remove the catch handler.
2934- for (mlir::Region ®ion : this ->getCatchRegions ())
2935- regions.push_back (mlir::RegionSuccessor (®ion ));
2934+ for (mlir::Region &handler : this ->getHandlers ())
2935+ regions.push_back (mlir::RegionSuccessor (&handler ));
29362936}
29372937
29382938static void printCatchRegions (mlir::OpAsmPrinter &printer, cir::TryOp op,
You can’t perform that action at this time.
0 commit comments