[llvm] r370333 - Fix signed/unsigned comparison warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 04:18:54 PDT 2019
Author: rksimon
Date: Thu Aug 29 04:18:53 2019
New Revision: 370333
URL: http://llvm.org/viewvc/llvm-project?rev=370333&view=rev
Log:
Fix signed/unsigned comparison warning. NFCI.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=370333&r1=370332&r2=370333&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Aug 29 04:18:53 2019
@@ -16460,7 +16460,8 @@ SDValue DAGCombiner::combineInsertEltToS
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 =
More information about the llvm-commits
mailing list