Minor fix to D13665 found during post-commit review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250616
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
}