Skip to content

Commit d25fc9e

Browse files
Remove extraneous setting of builder positions.
1 parent ca328e1 commit d25fc9e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_trans/mir/block.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,14 +580,12 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
580580

581581
if let Some((_, target)) = *destination {
582582
let ret_bcx = self.get_builder(target);
583-
ret_bcx.position_at_start(ret_bcx.llbb());
584583
self.set_debug_loc(&ret_bcx, terminator.source_info);
585584
let op = OperandRef {
586585
val: Immediate(invokeret),
587586
ty: sig.output(),
588587
};
589588
self.store_return(&ret_bcx, ret_dest, fn_ty.ret, op);
590-
ret_bcx.position_at_end(ret_bcx.llbb());
591589
}
592590
} else {
593591
let llret = bcx.call(fn_ptr, &llargs, cleanup_bundle);

0 commit comments

Comments
 (0)