From 2bf871be4c35d70db080dde789cf9bb334c04057 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 24 Jul 2019 17:44:22 +0000 Subject: [PATCH] Fix signed/unsigned comparison warning. NFCI. llvm-svn: 366935 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 014e67274b82..b1188c8bc5d6 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;