mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +00:00
Fix compiler warnings about signed/unsigned comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117511 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f514f52790
commit
1fa9d301a8
@ -4575,9 +4575,9 @@ static SDValue PerformVECTOR_SHUFFLECombine(SDNode *N, SelectionDAG &DAG) {
|
||||
for (unsigned n = 0; n < NumElts; ++n) {
|
||||
int MaskElt = SVN->getMaskElt(n);
|
||||
int NewElt = -1;
|
||||
if (MaskElt < HalfElts)
|
||||
if (MaskElt < (int)HalfElts)
|
||||
NewElt = MaskElt;
|
||||
else if (MaskElt >= NumElts && MaskElt < NumElts + HalfElts)
|
||||
else if (MaskElt >= (int)NumElts && MaskElt < (int)(NumElts + HalfElts))
|
||||
NewElt = HalfElts + MaskElt - NumElts;
|
||||
NewMask.push_back(NewElt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user