aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/Type.cpp4
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");
}