Skip to content

Commit 357c3cf

Browse files
committed
Fix handling of dead unwinds in backward analyses
Dead unwinds set contains a head of an unreachable unwind edge.
1 parent 23b1cc1 commit 357c3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_dataflow/src/framework/direction.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl Direction for Backward {
287287
| mir::TerminatorKind::InlineAsm { cleanup: Some(unwind), .. }
288288
if unwind == bb =>
289289
{
290-
if dead_unwinds.map_or(true, |dead| !dead.contains(bb)) {
290+
if dead_unwinds.map_or(true, |dead| !dead.contains(pred)) {
291291
propagate(pred, exit_state);
292292
}
293293
}

0 commit comments

Comments
 (0)