Skip to content

Commit

Permalink
Auto merge of rust-lang#106382 - tmiasko:sdniwnu-daed, r=wesleywiser
Browse files Browse the repository at this point in the history
Fix handling of dead unwinds in backward analyses

Dead unwinds set contains a head of an unreachable unwind edge.
  • Loading branch information
bors committed Jan 4, 2023
2 parents df75643 + 357c3cf commit b7cdb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_dataflow/src/framework/direction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl Direction for Backward {
| mir::TerminatorKind::InlineAsm { cleanup: Some(unwind), .. }
if unwind == bb =>
{
if dead_unwinds.map_or(true, |dead| !dead.contains(bb)) {
if dead_unwinds.map_or(true, |dead| !dead.contains(pred)) {
propagate(pred, exit_state);
}
}
Expand Down

0 comments on commit b7cdb63

Please sign in to comment.