Compare commits
1 Commits
e97ceb0da9
...
e07cc64a95
Author | SHA1 | Date |
---|---|---|
|
e07cc64a95 |
|
@ -789,7 +789,10 @@ pub fn gen_try<'ctx, 'a, G: CodeGenerator>(
|
|||
ctx.outer_catch_clauses = old_clauses;
|
||||
ctx.unwind_target = old_unwind;
|
||||
ctx.return_target = old_return;
|
||||
ctx.loop_target = old_loop_target.or(ctx.loop_target).take();
|
||||
if let Some(old_loop_target) = old_loop_target {
|
||||
ctx.loop_target.replace(old_loop_target);
|
||||
}
|
||||
old_loop_target = None;
|
||||
|
||||
let old_unwind = if !finalbody.is_empty() {
|
||||
let final_landingpad = ctx.ctx.append_basic_block(current_fun, "try.catch.final");
|
||||
|
@ -910,7 +913,9 @@ pub fn gen_try<'ctx, 'a, G: CodeGenerator>(
|
|||
}
|
||||
|
||||
ctx.unwind_target = old_unwind;
|
||||
ctx.loop_target = old_loop_target.or(ctx.loop_target).take();
|
||||
if let Some(old_loop_target) = old_loop_target {
|
||||
ctx.loop_target.replace(old_loop_target);
|
||||
}
|
||||
ctx.return_target = old_return;
|
||||
|
||||
ctx.builder.position_at_end(landingpad);
|
||||
|
|
Loading…
Reference in New Issue