aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2007-11-15 21:15:26 +0000
committerNate Begeman <natebegeman@mac.com>2007-11-15 21:15:26 +0000
commit5db1afb462b048bc10e0003db5a770ed960b2ddf (patch)
treeda580fd05ab29a658cd8995e19915a22253edc52 /lib/VMCore
parent4e1a0e386c6861a697b0cd2e13a33ac4dd60e17d (diff)
downloadexternal_llvm-5db1afb462b048bc10e0003db5a770ed960b2ddf.zip
external_llvm-5db1afb462b048bc10e0003db5a770ed960b2ddf.tar.gz
external_llvm-5db1afb462b048bc10e0003db5a770ed960b2ddf.tar.bz2
Basic non-power-of-2 vector support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Type.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 3e085f4..b8ce47b 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -1209,7 +1209,6 @@ static ManagedStatic<TypeMap<VectorValType, VectorType> > VectorTypes;
VectorType *VectorType::get(const Type *ElementType, unsigned NumElements) {
assert(ElementType && "Can't get vector of null types!");
- assert(isPowerOf2_32(NumElements) && "Vector length should be a power of 2!");
VectorValType PVT(ElementType, NumElements);
VectorType *PT = VectorTypes->get(PVT);