mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
5da59b1fe2
commit
e463fc8098
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user