Fix build breakage
authorNate Begeman <natebegeman@mac.com>
Mon, 12 May 2008 19:23:22 +0000 (19:23 +0000)
committerNate Begeman <natebegeman@mac.com>
Mon, 12 May 2008 19:23:22 +0000 (19:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50986 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index f9b8bd7b2ac9eba42b2f5a0a77a305e9d0859353..974678b2c0eb1a09046f11cf1b5bcce037a3cefb 100644 (file)
@@ -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<VectorType>(LHS->getType());
+  const VectorType *VTy = cast<VectorType>(LHS->getType());
   const Type *EltTy = VTy->getElementType();
   unsigned NumElts = VTy->getNumElements();