Skip to content

Commit

Permalink
Auto merge of #113124 - nbdd0121:eh_frame, r=cjgillot
Browse files Browse the repository at this point in the history
Add MIR validation for unwind out from nounwind functions + fixes to make validation pass

`@Nilstrieb`  This is the MIR validation you asked in rust-lang/rust#112403 (comment).

Two passes need to be fixed to get the validation to pass:
* `RemoveNoopLandingPads` currently unconditionally introduce a resume block (even there is none to begin with!), changed to not do that
* Generator state transform introduces a `assert` which may unwind, and its drop elaboration also introduces many new `UnwindAction`s, so in this case run the AbortUnwindingCalls after the transformation.

I believe this PR should also fix Rust-for-Linux/linux#1016, cc `@ojeda`

r? `@Nilstrieb`
  • Loading branch information
bors committed Aug 20, 2023
2 parents 1a3292d + 1f66b20 commit 06d06e7
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 06d06e7

Please sign in to comment.