Skip to content

Commit a924199

Browse files
committed
[X86] Fix -Wsign-compare in X86ISelLowering.cpp (NFC)
llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:40081:21: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare] for (int I = 0; I != NumElts; ++I) { ~ ^ ~~~~~~~ 1 error generated.
1 parent 4721490 commit a924199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40078,7 +40078,7 @@ static SDValue combineBlendOfPermutes(MVT VT, SDValue N0, SDValue N1,
4007840078
// Create the new permute mask as a blend of the 2 original permute masks.
4007940079
SmallVector<int, 32> NewBlendMask(NumElts, SM_SentinelUndef);
4008040080
SmallVector<int, 32> NewPermuteMask(NumElts, SM_SentinelUndef);
40081-
for (int I = 0; I != NumElts; ++I) {
40081+
for (unsigned I = 0; I != NumElts; ++I) {
4008240082
if (Demanded0[I]) {
4008340083
int M = ScaledMask0[I];
4008440084
if (0 <= M) {

0 commit comments

Comments
 (0)