Fix signed/unsigned warning. NFCI.

llvm-svn: 334509
This commit is contained in:
Simon Pilgrim 2018-06-12 15:14:34 +00:00
parent bea23d065e
commit 51ef8dabcd
1 changed files with 2 additions and 2 deletions

View File

@ -668,8 +668,8 @@ static bool isIdentityVectorMask(ArrayRef<int> Mask) {
for (unsigned i = 0; i < MaskSize && (IdentityLHS || IdentityRHS); ++i) {
if (Mask[i] < 0)
continue;
IdentityLHS &= (Mask[i] == i);
IdentityRHS &= (Mask[i] == (i + MaskSize));
IdentityLHS &= (Mask[i] == (int)i);
IdentityRHS &= (Mask[i] == (int)(i + MaskSize));
}
return IdentityLHS || IdentityRHS;
}