From e95076f3211d4ee9ebb5372a4e98c8ee0d2c5cb3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 9 Jun 2021 20:08:13 -0400 Subject: [PATCH] SignalDelegator: Migrate from std::unexpected() to std::terminate() std::unexpected() was deprecated in C++11 and removed from the standard in C++17. The default unexpected_handler would call std::terminate anyway, and given we don't explicitly set a termination handler (as far as I can tell), this retains identical behavior. --- Source/Tests/LinuxSyscalls/SignalDelegator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tests/LinuxSyscalls/SignalDelegator.cpp b/Source/Tests/LinuxSyscalls/SignalDelegator.cpp index bec773cde..9dcc18170 100644 --- a/Source/Tests/LinuxSyscalls/SignalDelegator.cpp +++ b/Source/Tests/LinuxSyscalls/SignalDelegator.cpp @@ -170,7 +170,7 @@ namespace FEX::HLE { // Doesn't return FEXCore::Context::StopThread(Thread->CTX, Thread); - std::unexpected(); + std::terminate(); } } else if (Handler.GuestAction.sigaction_handler.handler == SIG_IGN) {