forked from OSchip/llvm-project
Prevent comparison with wider type in loop condition
This change fixes the code violations flagged in AMD compute CodeQL scan - "comparison-with-wider-type" Differential Revision: https://reviews.llvm.org/D122447
This commit is contained in:
parent
635dde8117
commit
b0225ab8fd
|
@ -840,8 +840,8 @@ void RecognizableInstr::emitDecodePath(DisassemblerTables &tables) const {
|
|||
|
||||
uint8_t currentOpcode;
|
||||
|
||||
for (currentOpcode = opcodeToSet; currentOpcode < opcodeToSet + Count;
|
||||
++currentOpcode)
|
||||
for (currentOpcode = opcodeToSet;
|
||||
currentOpcode < (uint8_t)(opcodeToSet + Count); ++currentOpcode)
|
||||
tables.setTableFields(*opcodeType, insnContext(), currentOpcode, *filter,
|
||||
UID, Is32Bit, OpPrefix == 0,
|
||||
IgnoresVEX_L || EncodeRC,
|
||||
|
|
Loading…
Reference in New Issue