Skip to content

Commit 35cdb28

Browse files
committed
add comment
1 parent 00ce5e8 commit 35cdb28

File tree

1 file changed

+9
-0
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+9
-0
lines changed

compiler/rustc_codegen_ssa/src/mir/block.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,15 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
15871587
// } catch (...) {
15881588
// bar();
15891589
// }
1590+
//
1591+
// which creates an IR snippet like
1592+
//
1593+
// cs_terminate:
1594+
// %cs = catchswitch within none [%cp_terminate] unwind to caller
1595+
// cp_terminate:
1596+
// %cp = catchpad within %cs [null, i32 64, null]
1597+
// ...
1598+
15901599
llbb = Bx::append_block(self.cx, self.llfn, "cs_terminate");
15911600
let cp_llbb = Bx::append_block(self.cx, self.llfn, "cp_terminate");
15921601

0 commit comments

Comments
 (0)