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
commit4a365ad43016e3bf8ce4d0383706a57f5d59976d (patch)
treeda580fd05ab29a658cd8995e19915a22253edc52 /lib/VMCore
parenteb61bf54eeb06608b94df5ebe7d2adecd688f730 (diff)
downloadexternal_llvm-4a365ad43016e3bf8ce4d0383706a57f5d59976d.zip
external_llvm-4a365ad43016e3bf8ce4d0383706a57f5d59976d.tar.gz
external_llvm-4a365ad43016e3bf8ce4d0383706a57f5d59976d.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);