summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-29 11:18:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-29 11:18:53 +0000
commit6c2fc64edc69ade466ca3cb64a6ed8b5f82434f2 (patch)
tree7e4516a9706167258a9e3e7f74bc7695362f081b /llvm/lib/CodeGen/SelectionDAG
parent27f43e6b1ae29e8352a9b895849e682d8d728077 (diff)
downloadbcm5719-llvm-6c2fc64edc69ade466ca3cb64a6ed8b5f82434f2.tar.gz
bcm5719-llvm-6c2fc64edc69ade466ca3cb64a6ed8b5f82434f2.zip
Fix signed/unsigned comparison warning. NFCI.
llvm-svn: 370333
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index c40c1a551c2..e2ce006a17b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -16460,7 +16460,8 @@ SDValue DAGCombiner::combineInsertEltToShuffle(SDNode *N, unsigned InsIndex) {
auto *ExtrIndex = cast<ConstantSDNode>(InsertVal.getOperand(1));
NewMask[InsIndex] = XOffset + ExtrIndex->getZExtValue();
- assert(NewMask[InsIndex] < 2 * Vec.getValueType().getVectorNumElements() &&
+ assert(NewMask[InsIndex] <
+ (int)(2 * Vec.getValueType().getVectorNumElements()) &&
NewMask[InsIndex] >= 0 && "NewMask[InsIndex] is out of bound");
SDValue LegalShuffle =
OpenPOWER on IntegriCloud