diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index f9b8bd7b2ac..974678b2c0e 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -2046,7 +2046,7 @@ ConstantExpr::getVICmp(unsigned short pred, Constant* LHS, Constant* RHS) { assert(pred >= ICmpInst::FIRST_ICMP_PREDICATE && pred <= ICmpInst::LAST_ICMP_PREDICATE && "Invalid VICmp Predicate"); - const Type *VTy = cast(LHS->getType()); + const VectorType *VTy = cast(LHS->getType()); const Type *EltTy = VTy->getElementType(); unsigned NumElts = VTy->getNumElements();