forked from OSchip/llvm-project
Allow PackedType to be constructed with an abstract type.
llvm-svn: 34152
This commit is contained in:
parent
756f83fdf9
commit
8a5e9891e8
|
@ -424,10 +424,8 @@ ArrayType::ArrayType(const Type *ElType, uint64_t NumEl)
|
||||||
PackedType::PackedType(const Type *ElType, unsigned NumEl)
|
PackedType::PackedType(const Type *ElType, unsigned NumEl)
|
||||||
: SequentialType(PackedTyID, ElType) {
|
: SequentialType(PackedTyID, ElType) {
|
||||||
NumElements = NumEl;
|
NumElements = NumEl;
|
||||||
|
setAbstract(ElType->isAbstract());
|
||||||
assert(NumEl > 0 && "NumEl of a PackedType must be greater than 0");
|
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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue