1
Fork 0

Add UnwindAction::Terminate

This commit is contained in:
Gary Guo 2022-10-10 22:40:40 +01:00
parent 5e6ed132fa
commit 0a5dac3062
16 changed files with 126 additions and 121 deletions

View file

@ -80,7 +80,7 @@ impl Unwind {
fn into_action(self) -> UnwindAction {
match self {
Unwind::To(bb) => UnwindAction::Cleanup(bb),
Unwind::InCleanup => UnwindAction::Continue,
Unwind::InCleanup => UnwindAction::Terminate,
}
}
@ -946,7 +946,7 @@ where
args,
destination: unit_temp,
target: Some(target),
unwind: UnwindAction::Unreachable,
unwind: UnwindAction::Terminate,
from_hir_call: false,
fn_span: self.source_info.span,
}; // FIXME(#43234)