From e463fc809872959d33b5da9549dbe96416dded30 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 10 Feb 2007 19:03:01 +0000 Subject: [PATCH] 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 --- lib/VMCore/Type.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 6bfdfd7a184..34bedbb00a3 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"); } -- 2.34.1