Init DecodeComplete with false for all archs. (#2164)

This commit is contained in:
Rot127 2023-09-15 06:35:34 +00:00 committed by GitHub
parent e00a210a3d
commit 9a0af75d8a
3 changed files with 5 additions and 5 deletions

View File

@ -95167,7 +95167,7 @@ static bool checkDecoderPredicate(MCInst *Inst, unsigned Idx)
Ptr += Len; \
MCInst_clear(MI); \
MCInst_setOpcode(MI, Opc); \
bool DecodeComplete; \
bool DecodeComplete = false; \
S = decoder(S, DecodeIdx, insn, MI, Address, \
&DecodeComplete); \
return S; \
@ -95185,7 +95185,7 @@ static bool checkDecoderPredicate(MCInst *Inst, unsigned Idx)
NumToSkip |= (*Ptr++) << 16; \
/* Perform the decode operation. */ \
MCInst_setOpcode(MI, Opc); \
bool DecodeComplete; \
bool DecodeComplete = false; \
S = decoder(S, DecodeIdx, insn, MI, Address, \
&DecodeComplete); \
if (DecodeComplete) { \

View File

@ -9819,7 +9819,7 @@ static DecodeStatus fname(const uint8_t DecodeTable[], MCInst *MI, \
NumToSkip |= (*Ptr++) << 16; \
/* Perform the decode operation. */ \
MCInst_setOpcode(MI, Opc); \
bool DecodeComplete; \
bool DecodeComplete = false; \
S = decoder(S, DecodeIdx, insn, MI, Address, &DecodeComplete); \
if (DecodeComplete) { \
/* Decoding complete. */ \

View File

@ -1720,7 +1720,7 @@ static DecodeStatus fname(const uint8_t DecodeTable[], MCInst *MI,\
\
MCInst_clear(MI);\
MCInst_setOpcode(MI, Opc);\
bool DecodeComplete;\
bool DecodeComplete = false;\
S = decoder(S, DecodeIdx, insn, MI, Address, DisAsm, &DecodeComplete);\
CS_ASSERT(DecodeComplete);\
\
@ -1738,7 +1738,7 @@ static DecodeStatus fname(const uint8_t DecodeTable[], MCInst *MI,\
\
MCInst TmpMI;\
MCInst_setOpcode(&TmpMI, Opc);\
bool DecodeComplete;\
bool DecodeComplete = false;\
S = decoder(S, DecodeIdx, insn, &TmpMI, Address, DisAsm, &DecodeComplete);\
\
if (DecodeComplete) {\