fix compilation for windows. variable defn after executable code

Change-Id: Id1dd721744b2370e2e2872c3a7f8b5498634a15b
This commit is contained in:
Mark Charney 2016-12-20 15:57:42 -05:00
parent ac509e1c15
commit 9da8d893e8

View File

@ -39,9 +39,11 @@ void xed3_static_decode(xed_decoded_inst_t* d)
if (find_f_arr) // very predictable branch, mostly taken
{
xed_uint8_t opcode;
xed3_find_func_t find_f;
opcode = (xed_uint8_t)xed3_operand_get_nominal_opcode(d);
// we have 0 for undefined map-opcodes as function pointer
xed3_find_func_t find_f = find_f_arr[opcode];
find_f = find_f_arr[opcode];
if (find_f)
xed3_idx = (*find_f)(d);
}