Skip to content

Commit 654131c

Browse files
Add unreachable() after calls to eh_unwind_resume.
1 parent 07cf2a9 commit 654131c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/librustc_trans/cleanup.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ impl<'tcx> DropValue<'tcx> {
9393
} else {
9494
let exc_ptr = resume_bcx.extract_value(lp, 0);
9595
resume_bcx.call(fcx.eh_unwind_resume().reify(fcx.ccx), &[exc_ptr], None);
96+
resume_bcx.unreachable();
9697
}
9798
UnwindKind::LandingPad
9899
};

src/librustc_trans/mir/block.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
130130
&[exc_ptr],
131131
cleanup_bundle,
132132
);
133+
bcx.unreachable();
133134
}
134135
}
135136
}

0 commit comments

Comments
 (0)