Fix an obvious error.
authorBob Wilson <bob.wilson@apple.com>
Tue, 14 Jul 2009 06:06:28 +0000 (06:06 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 14 Jul 2009 06:06:28 +0000 (06:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75611 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ValueTypes.cpp

index 5224e021de75544d4c5a659b8ca741ab16e2e333..82b030e07f1f8b918411cd1234f1d19ffbdb7d92 100644 (file)
@@ -159,8 +159,8 @@ const Type *MVT::getTypeForMVT(LLVMContext &Context) const {
   case MVT::v32i8:   return Context.getVectorType(Type::Int8Ty, 32);
   case MVT::v2i16:   return Context.getVectorType(Type::Int16Ty, 2);
   case MVT::v4i16:   return Context.getVectorType(Type::Int16Ty, 4);
-  case MVT::v8i16:   return Context.getVectorType(Type::Int16Ty, 16);
-  case MVT::v16i16:  return Context.getVectorType(Type::Int16Ty, 8);
+  case MVT::v8i16:   return Context.getVectorType(Type::Int16Ty, 8);
+  case MVT::v16i16:  return Context.getVectorType(Type::Int16Ty, 16);
   case MVT::v2i32:   return Context.getVectorType(Type::Int32Ty, 2);
   case MVT::v3i32:   return Context.getVectorType(Type::Int32Ty, 3);
   case MVT::v4i32:   return Context.getVectorType(Type::Int32Ty, 4);
@@ -202,4 +202,4 @@ MVT MVT::getMVT(const Type *Ty, bool HandleUnknown){
                        VTy->getNumElements());
   }
   }
-}
\ No newline at end of file
+}