From e0bbfdda84c763123a897d9400f3b9d7f14c9930 Mon Sep 17 00:00:00 2001 From: Justin Becker Date: Mon, 17 Aug 2026 12:05:24 -0700 Subject: [PATCH] Cleaner change --- FEXCore/Source/Interface/Core/Frontend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FEXCore/Source/Interface/Core/Frontend.cpp b/FEXCore/Source/Interface/Core/Frontend.cpp index bf4330467..3ea384c44 100644 --- a/FEXCore/Source/Interface/Core/Frontend.cpp +++ b/FEXCore/Source/Interface/Core/Frontend.cpp @@ -1454,7 +1454,8 @@ void Decoder::DecodeInstructionsAtEntry(FEXCore::Core::InternalThreadState* Thre if (BlockSuccIt != BlockInfo.Blocks.end() && BlockSuccIt->Entry < NextBlockStartAddress) { NextBlockStartAddress = BlockSuccIt->Entry; } - LOGMAN_THROW_A_FMT(NextBlockStartAddress > RIPToDecode, "unexpected"); + + LOGMAN_THROW_A_FMT(NextBlockStartAddress == ~0ULL || NextBlockStartAddress > RIPToDecode, "unexpected"); // Insert the block now so it can be looked up and split if necessary on a backward edge auto BlockIt = BlockInfo.Blocks.emplace(BlockSuccIt);