diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2019-02-25 19:33:58 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2019-02-25 19:33:58 +0000 |
commit | 4a1e59a6e0835ab4d03ab7ce317a08df7ec6cb22 (patch) | |
tree | 58ef66cb9e516ade2d94da2631d90f56727dd768 /llvm/lib/CodeGen | |
parent | fd6fd007739c66cf36d1bfe288b4a96f901a32fd (diff) | |
download | bcm5719-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.cpp | 2 |
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) |