]> granicus.if.org Git - llvm/commitdiff
Fix a sign compare warning breaking the -Werror build.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 25 Feb 2019 19:33:58 +0000 (19:33 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 25 Feb 2019 19:33:58 +0000 (19:33 +0000)
The warning was introduced at r354793.

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

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index c172fb072fadb7ca92573b6dec6bd50b066bc5c5..183a1f5688884bc296bbe993cc5d4f2de76f83c5 100644 (file)
@@ -17404,7 +17404,7 @@ static SDValue partitionShuffleOfConcats(SDNode *N, SelectionDAG &DAG) {
     for (int i = 0; i != (int)NumElemsPerConcat; ++i) {
       if (IsUndefMaskElt(SubMask[i]))
         continue;
-      if ((SubMask[i] % NumElemsPerConcat) != i)
+      if ((SubMask[i] % (int)NumElemsPerConcat) != i)
         return SDValue();
       int EltOpIdx = SubMask[i] / NumElemsPerConcat;
       if (0 <= OpIdx && EltOpIdx != OpIdx)