Skip to content

Commit c6f2d35

Browse files
committed
Fix a build warning introduce by my febbf91
1 parent e3fdc3a commit c6f2d35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5161,14 +5161,14 @@ static SDValue lowerShuffleViaVRegSplitting(ShuffleVectorSDNode *SVN,
51615161
static bool isCompressMask(ArrayRef<int> Mask) {
51625162
int Last = -1;
51635163
bool SawUndef = false;
5164-
for (int i = 0; i < Mask.size(); i++) {
5164+
for (unsigned i = 0; i < Mask.size(); i++) {
51655165
if (Mask[i] == -1) {
51665166
SawUndef = true;
51675167
continue;
51685168
}
51695169
if (SawUndef)
51705170
return false;
5171-
if (i > Mask[i])
5171+
if (i > (unsigned)Mask[i])
51725172
return false;
51735173
if (Mask[i] <= Last)
51745174
return false;

0 commit comments

Comments
 (0)