ArchHelpers: Remove pair usage in unaligned handler

It's being treated like optional, where a value means it has been
handled, and no value means it hasn't been handled. Stop using pair in
this case.
This commit is contained in:
Ryan Houdek committed 2025-07-25 13:01:18 -07:00
1 parent 30fb992cf7
commit b0c61e2b69
7 files changed
+43 -52

No files matched your search

+2 -6
View File
@@ -335,12 +335,8 @@ static bool HandleUnalignedAccess(ARM64_NT_CONTEXT& Context) {
FEXCORE_PROFILE_INSTANT_INCREMENT(Thread, AccumulatedSIGBUSCount, 1);
const auto Result =
FEXCore::ArchHelpers::Arm64::HandleUnalignedAccess(Thread, HandlerConfig->GetUnalignedHandlerType(), Context.Pc, &Context.X0);
if (!Result.first) {
return false;
}
Context.Pc += Result.second;
return true;
Context.Pc += Result.value_or(0);
return Result.has_value();
}
static void LoadStateFromECContext(FEXCore::Core::InternalThreadState* Thread, CONTEXT& Context) {