diff --git a/lib/Arch/X86/Arch.cpp b/lib/Arch/X86/Arch.cpp index 3405f10a0..de41f1ba2 100644 --- a/lib/Arch/X86/Arch.cpp +++ b/lib/Arch/X86/Arch.cpp @@ -1203,6 +1203,8 @@ bool X86Arch::DecodeInstruction(uint64_t address, std::string_view inst_bytes, return false; } + inst.category = CreateCategory(xedd); + // Look for instruction fusing opportunities. For now, just `call; pop`. const char *is_fused_call_pop = nullptr; if (len < inst_bytes.size() && @@ -1230,7 +1232,6 @@ bool X86Arch::DecodeInstruction(uint64_t address, std::string_view inst_bytes, } } - inst.category = CreateCategory(xedd); inst.next_pc = address + len + extra_len; // Fiddle with the size of the bytes.