1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fix signed/unsigned warning

llvm-svn: 283041
This commit is contained in:
Simon Pilgrim 2016-10-01 16:14:57 +00:00
parent 3c7330116c
commit e572b8dadd

View File

@ -25201,13 +25201,13 @@ static bool matchBinaryPermuteVectorShuffle(MVT MaskVT, ArrayRef<int> Mask,
// Attempt to match as a binary blend.
if (NumMaskElts <= BlendVT.getVectorNumElements()) {
bool MatchBlend = true;
for (int i = 0; i != NumMaskElts; ++i) {
for (int i = 0; i != (int)NumMaskElts; ++i) {
int M = Mask[i];
if (M == SM_SentinelUndef)
continue;
else if (M == SM_SentinelZero)
MatchBlend = false;
else if ((M != i) && (M != (i + NumMaskElts)))
else if ((M != i) && (M != (i + (int)NumMaskElts)))
MatchBlend = false;
}