From: Simon Pilgrim Date: Wed, 24 Jul 2019 17:44:22 +0000 (+0000) Subject: Fix signed/unsigned comparison warning. NFCI. X-Git-Tag: llvmorg-11-init~13655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bf871be4c35d70db080dde789cf9bb334c04057;p=platform%2Fupstream%2Fllvm.git Fix signed/unsigned comparison warning. NFCI. llvm-svn: 366935 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 014e672..b1188c8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -9076,7 +9076,7 @@ SelectionDAG::matchBinOpReduction(SDNode *Extract, ISD::NodeType &BinOp, // 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;