[PATCH] D122447: Prevent comparison with wider type in loop condition
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 25 04:35:41 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb0225ab8fd4f: Prevent comparison with wider type in loop condition (authored by Aakanksha <paakan at amd.com>).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122447/new/
https://reviews.llvm.org/D122447
Files:
llvm/utils/TableGen/X86RecognizableInstr.cpp
Index: llvm/utils/TableGen/X86RecognizableInstr.cpp
===================================================================
--- llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ llvm/utils/TableGen/X86RecognizableInstr.cpp
@@ -840,8 +840,8 @@
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122447.418185.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220325/d72954b8/attachment.bin>
More information about the llvm-commits
mailing list