diff options
| author | Jan-Mirko Otter <janmirko.otter@googlemail.com> | 2023-05-07 11:02:17 +0200 |
|---|---|---|
| committer | Jan-Mirko Otter <janmirko.otter@googlemail.com> | 2023-06-07 17:46:34 +0200 |
| commit | 35cdb28c846dd327801bbcfd274385e3e353b21a (patch) | |
| tree | 96242583d86dca8ca7f7e30c9c5e2f731aedf106 /compiler | |
| parent | 00ce5e8fcab0b6c64c12e3fee9c67cc155034692 (diff) | |
| download | rust-35cdb28c846dd327801bbcfd274385e3e353b21a.tar.gz rust-35cdb28c846dd327801bbcfd274385e3e353b21a.zip | |
add comment
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/block.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs index e0cb26d3ba8..b0a9aec3694 100644 --- a/compiler/rustc_codegen_ssa/src/mir/block.rs +++ b/compiler/rustc_codegen_ssa/src/mir/block.rs @@ -1587,6 +1587,15 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { // } catch (...) { // bar(); // } + // + // which creates an IR snippet like + // + // cs_terminate: + // %cs = catchswitch within none [%cp_terminate] unwind to caller + // cp_terminate: + // %cp = catchpad within %cs [null, i32 64, null] + // ... + llbb = Bx::append_block(self.cx, self.llfn, "cs_terminate"); let cp_llbb = Bx::append_block(self.cx, self.llfn, "cp_terminate"); |
