add comment
This commit is contained in:
parent
00ce5e8fca
commit
35cdb28c84
1 changed files with 9 additions and 0 deletions
|
@ -1587,6 +1587,15 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||||
// } catch (...) {
|
// } catch (...) {
|
||||||
// bar();
|
// 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");
|
llbb = Bx::append_block(self.cx, self.llfn, "cs_terminate");
|
||||||
let cp_llbb = Bx::append_block(self.cx, self.llfn, "cp_terminate");
|
let cp_llbb = Bx::append_block(self.cx, self.llfn, "cp_terminate");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue