Fix new usage of old api

This commit is contained in:
Gary Guo 2023-03-06 16:36:42 +00:00
parent e29b5badbc
commit c5829c2ee5
3 changed files with 5 additions and 5 deletions

View file

@ -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;
}
}
}