diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 2ff20774eae..6d613436b8f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3321,11 +3321,11 @@ SDValue SelectionDAG::FoldConstantVectorArithmetic(unsigned Opcode, SDLoc DL, for (unsigned i = 0; i != NumElts; i++) { SmallVector<SDValue, 4> ScalarOps; for (SDValue Op : Ops) { - EVT InSVT = Op->getValueType(0).getScalarType(); + EVT InSVT = Op.getValueType().getScalarType(); BuildVectorSDNode *InBV = dyn_cast<BuildVectorSDNode>(Op); if (!InBV) { // We've checked that this is UNDEF above. - ScalarOps.push_back(getUNDEF(LegalSVT)); + ScalarOps.push_back(getUNDEF(InSVT)); continue; } |