Fix signed/unsigned comparison warning. NFCI.

llvm-svn: 370333
This commit is contained in:
Simon Pilgrim 2019-08-29 11:18:53 +00:00
parent 27f43e6b1a
commit 6c2fc64edc
1 changed files with 2 additions and 1 deletions

View File

@ -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 =