From 876791187315ceeda37c34daf16bf56247c48ff4 Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Mon, 25 Feb 2019 19:33:58 +0000 Subject: [PATCH] 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 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.50.1