[llvm] r354810 - Fix a sign compare warning breaking the -Werror build.
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 25 11:33:58 PST 2019
Author: adibiagio
Date: Mon Feb 25 11:33:58 2019
New Revision: 354810
URL: http://llvm.org/viewvc/llvm-project?rev=354810&view=rev
Log:
Fix a sign compare warning breaking the -Werror build.
The warning was introduced at r354793.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=354810&r1=354809&r2=354810&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Feb 25 11:33:58 2019
@@ -17404,7 +17404,7 @@ static SDValue partitionShuffleOfConcats
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)
More information about the llvm-commits
mailing list