Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp =================================================================== --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1174,7 +1174,7 @@ "getZeroExtendInReg type should be vector iff the operand " "type is vector!"); assert((!VT.isVector() || - VT.getVectorNumElements() == OpVT.getVectorNumElements()) && + VT.getVectorElementCount() == OpVT.getVectorElementCount()) && "Vector element counts must match in getZeroExtendInReg"); assert(VT.bitsLE(OpVT) && "Not extending!"); if (OpVT == VT)