[X86] Fix enumeral/non-enumeral comparison warning.

gcc only allows you to mix enums / ints if they have the same signedness.

llvm-svn: 295576
This commit is contained in:
Simon Pilgrim 2017-02-18 22:40:58 +00:00
parent 2e78c94ea5
commit 7a87eebcad
1 changed files with 1 additions and 1 deletions

View File

@ -5738,7 +5738,7 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl<int> &Mask,
// Attempt to recognise a PINSR*(VEC, 0, Idx) shuffle pattern.
if (X86::isZeroNode(InScl)) {
Ops.push_back(InVec);
for (unsigned i = 0; i != NumElts; ++i)
for (int i = 0; i != (int)NumElts; ++i)
Mask.push_back(i == InIdx ? SM_SentinelZero : i);
return true;
}