forked from OSchip/llvm-project
[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:
parent
2e78c94ea5
commit
7a87eebcad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue