forked from OSchip/llvm-project
Fix signed/unsigned comparison warning. NFCI.
llvm-svn: 370333
This commit is contained in:
parent
27f43e6b1a
commit
6c2fc64edc
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue