summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2019-02-25 19:33:58 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2019-02-25 19:33:58 +0000
commit4a1e59a6e0835ab4d03ab7ce317a08df7ec6cb22 (patch)
tree58ef66cb9e516ade2d94da2631d90f56727dd768 /llvm/lib/CodeGen
parentfd6fd007739c66cf36d1bfe288b4a96f901a32fd (diff)
downloadbcm5719-llvm-4a1e59a6e0835ab4d03ab7ce317a08df7ec6cb22.tar.gz
bcm5719-llvm-4a1e59a6e0835ab4d03ab7ce317a08df7ec6cb22.zip
Fix a sign compare warning breaking the -Werror build.
The warning was introduced at r354793. llvm-svn: 354810
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index c172fb072fa..183a1f56888 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud