From: Andrea Di Biagio Date: Mon, 25 Feb 2019 19:33:58 +0000 (+0000) Subject: Fix a sign compare warning breaking the -Werror build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=876791187315ceeda37c34daf16bf56247c48ff4;p=llvm Fix a sign compare warning breaking the -Werror build. The warning was introduced at r354793. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354810 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index c172fb072fa..183a1f56888 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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)