aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-07-24 17:44:22 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-07-24 17:44:22 +0000
commit2bf871be4c35d70db080dde789cf9bb334c04057 (patch)
treef9012e041f8dc3244b7cccefdd7cad6c352f02dd /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentcd7a6fa314953f71af0686bd0fcc8f6a8cb133bf (diff)
downloadllvm-2bf871be4c35d70db080dde789cf9bb334c04057.zip
llvm-2bf871be4c35d70db080dde789cf9bb334c04057.tar.gz
llvm-2bf871be4c35d70db080dde789cf9bb334c04057.tar.bz2
Fix signed/unsigned comparison warning. NFCI.
llvm-svn: 366935
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
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;