Silence a warning due to a comparison between signed and unsigned.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 26 Jun 2014 13:41:10 +0000 (13:41 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 26 Jun 2014 13:41:10 +0000 (13:41 +0000)
No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211782 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index ebacc425df0434c04550c2c15bb378dab0286992..d7e63e39ec7c9cc2bf2ba85211889f46cf64817a 100644 (file)
@@ -18046,7 +18046,7 @@ static SDValue PerformShuffleCombine(SDNode *N, SelectionDAG &DAG,
     bool CanFold = true;
 
     for (unsigned i = 0, e = NumElts; i != e && CanFold; ++i)
-      CanFold = Mask[i] == (i & 1) ? i + NumElts : i;
+      CanFold = Mask[i] == (int)((i & 1) ? i + NumElts : i);
 
     if (CanFold) {
       SDValue Op0 = N1->getOperand(0);