From fe9dc6e62a312bc2fe01bb5ea65ea5d027ce878d Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Wed, 12 Jan 2022 20:45:31 +0000 Subject: Change TerminatorKind::Abort to call the panic handler instead of aborting immediately. The panic handler is called with a special flag which forces it to abort after calling the panic hook. --- src/test/codegen/unwind-and-panic-abort.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/unwind-and-panic-abort.rs b/src/test/codegen/unwind-and-panic-abort.rs index 05d97f3256a..f238741e599 100644 --- a/src/test/codegen/unwind-and-panic-abort.rs +++ b/src/test/codegen/unwind-and-panic-abort.rs @@ -9,7 +9,7 @@ extern "C-unwind" { // CHECK: Function Attrs:{{.*}}nounwind // CHECK-NEXT: define{{.*}}void @foo -// CHECK: call void @llvm.trap() +// CHECK: call void @_ZN4core9panicking15panic_no_unwind #[no_mangle] pub unsafe extern "C" fn foo() { bar(); -- cgit 1.4.1-3-g733a5