diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-02-14 12:17:42 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-02-14 12:17:42 +0000 |
| commit | 608e665946afc2b89050fcf0b99070db2c006bee (patch) | |
| tree | d332f023fbc1365c9129fe463cb61d4147ac16ec /lib/IR/Type.cpp | |
| parent | ec304151b74f9254d7029ee4d197ce1f7cbe501a (diff) | |
Notes
Diffstat (limited to 'lib/IR/Type.cpp')
| -rw-r--r-- | lib/IR/Type.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/IR/Type.cpp b/lib/IR/Type.cpp index 889705e95fc2..65060dc39d27 100644 --- a/lib/IR/Type.cpp +++ b/lib/IR/Type.cpp @@ -708,9 +708,10 @@ VectorType::VectorType(Type *ElType, unsigned NumEl) VectorType *VectorType::get(Type *elementType, unsigned NumElements) { Type *ElementType = const_cast<Type*>(elementType); assert(NumElements > 0 && "#Elements of a VectorType must be greater than 0"); - assert(isValidElementType(ElementType) && - "Elements of a VectorType must be a primitive type"); - + assert(isValidElementType(ElementType) && "Element type of a VectorType must " + "be an integer, floating point, or " + "pointer type."); + LLVMContextImpl *pImpl = ElementType->getContext().pImpl; VectorType *&Entry = ElementType->getContext().pImpl ->VectorTypes[std::make_pair(ElementType, NumElements)]; |
