Skip to content

Commit

Permalink
Mark rust_eh_unwind_resume as #[inline(always)]
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jan 28, 2020
1 parent 2dbac07 commit a2d6604
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libpanic_unwind/gcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ unsafe fn find_eh_action(
))]
#[lang = "eh_unwind_resume"]
#[unwind(allowed)]
// This must always be inlined because _Unwind_Resume expects to be called
// directly from the landing pad.
#[cfg_attr(not(bootstrap), inline(always))]
unsafe extern "C" fn rust_eh_unwind_resume(panic_ctx: *mut u8) -> ! {
uw::_Unwind_Resume(panic_ctx as *mut uw::_Unwind_Exception);
}
Expand Down

0 comments on commit a2d6604

Please sign in to comment.