diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-10 19:03:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-10 19:03:01 +0000 |
commit | e463fc809872959d33b5da9549dbe96416dded30 (patch) | |
tree | 7a2e3db8eb3409623c819ae8adf1352810d98abf /lib/VMCore/Type.cpp | |
parent | 5da59b1fe2d12060c9a40dff7a7c22e2ac96c9bb (diff) | |
download | llvm-e463fc809872959d33b5da9549dbe96416dded30.tar.gz llvm-e463fc809872959d33b5da9549dbe96416dded30.tar.bz2 llvm-e463fc809872959d33b5da9549dbe96416dded30.tar.xz |
Allow PackedType to be constructed with an abstract type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 6bfdfd7a18..34bedbb00a 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -424,10 +424,8 @@ ArrayType::ArrayType(const Type *ElType, uint64_t NumEl) PackedType::PackedType(const Type *ElType, unsigned NumEl) : SequentialType(PackedTyID, ElType) { NumElements = NumEl; - + setAbstract(ElType->isAbstract()); assert(NumEl > 0 && "NumEl of a PackedType must be greater than 0"); - assert((ElType->isInteger() || ElType->isFloatingPoint()) && - "Elements of a PackedType must be a primitive type"); } |