Fix handling of dead unwinds in backward analyses
Dead unwinds set contains a head of an unreachable unwind edge.
This commit is contained in:
parent
23b1cc197a
commit
357c3cf72c
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ impl Direction for Backward {
|
||||||
| mir::TerminatorKind::InlineAsm { cleanup: Some(unwind), .. }
|
| mir::TerminatorKind::InlineAsm { cleanup: Some(unwind), .. }
|
||||||
if unwind == bb =>
|
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);
|
propagate(pred, exit_state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue