mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Silence compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -6988,14 +6988,14 @@ SDValue DAGCombiner::visitBUILD_VECTOR(SDNode *N) {
|
|||||||
DAG.getConstant(0, InScalarTy);
|
DAG.getConstant(0, InScalarTy);
|
||||||
|
|
||||||
unsigned NewBVElems = ElemRatio * N->getValueType(0).getVectorNumElements();
|
unsigned NewBVElems = ElemRatio * N->getValueType(0).getVectorNumElements();
|
||||||
SmallVector<SDValue,8> Ops(NewBVElems , Filler);
|
SmallVector<SDValue, 8> Ops(NewBVElems, Filler);
|
||||||
|
|
||||||
// Populate the new build_vector
|
// Populate the new build_vector
|
||||||
for (unsigned i=0; i < N->getNumOperands(); ++i) {
|
for (unsigned i=0; i < N->getNumOperands(); ++i) {
|
||||||
SDValue Cast = N->getOperand(i);
|
SDValue Cast = N->getOperand(i);
|
||||||
assert(Cast.getOpcode() == ISD::ANY_EXTEND ||
|
assert((Cast.getOpcode() == ISD::ANY_EXTEND ||
|
||||||
Cast.getOpcode() == ISD::ZERO_EXTEND ||
|
Cast.getOpcode() == ISD::ZERO_EXTEND ||
|
||||||
Cast.getOpcode() == ISD::UNDEF && "Invalid cast opcode");
|
Cast.getOpcode() == ISD::UNDEF) && "Invalid cast opcode");
|
||||||
SDValue In;
|
SDValue In;
|
||||||
if (Cast.getOpcode() == ISD::UNDEF)
|
if (Cast.getOpcode() == ISD::UNDEF)
|
||||||
In = DAG.getUNDEF(InScalarTy);
|
In = DAG.getUNDEF(InScalarTy);
|
||||||
|
Reference in New Issue
Block a user