[llvm] r366935 - Fix signed/unsigned comparison warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 10:44:22 PDT 2019
Author: rksimon
Date: Wed Jul 24 10:44:22 2019
New Revision: 366935
URL: http://llvm.org/viewvc/llvm-project?rev=366935&view=rev
Log:
Fix signed/unsigned comparison warning. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=366935&r1=366934&r2=366935&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Jul 24 10:44:22 2019
@@ -9076,7 +9076,7 @@ SelectionDAG::matchBinOpReduction(SDNode
// Verify the shuffle has the expected (at this stage of the pyramid) mask.
for (int Index = 0; Index < (int)MaskEnd; ++Index)
- if (Shuffle->getMaskElt(Index) != (MaskEnd + Index))
+ if (Shuffle->getMaskElt(Index) != (int)(MaskEnd + Index))
return PartialReduction(PrevOp, MaskEnd);
PrevOp = Op;
More information about the llvm-commits
mailing list