Fix compiler warnings about signed/unsigned comparisons.
authorBob Wilson <bob.wilson@apple.com>
Wed, 27 Oct 2010 23:49:00 +0000 (23:49 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 27 Oct 2010 23:49:00 +0000 (23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117511 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 5538a28b3a8fe9e2cadbf150cd08ec306674b1e1..85093874478dd27ebab110d83a7bfd6b5b0068c0 100644 (file)
@@ -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);
   }