Fix new usage of old api
This commit is contained in:
parent
e29b5badbc
commit
c5829c2ee5
3 changed files with 5 additions and 5 deletions
|
@ -160,7 +160,7 @@ fn remove_dead_unwinds<'tcx>(
|
|||
let basic_blocks = body.basic_blocks.as_mut();
|
||||
for &bb in dead_unwinds.iter() {
|
||||
if let Some(unwind) = basic_blocks[bb].terminator_mut().unwind_mut() {
|
||||
*unwind = None;
|
||||
*unwind = UnwindAction::Unreachable;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue