mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Assert that elements of packed are pointer/float/opaque.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e9f579028
commit
cc5dc2e792
@ -426,6 +426,10 @@ PackedType::PackedType(const Type *ElType, unsigned NumEl)
|
||||
NumElements = NumEl;
|
||||
setAbstract(ElType->isAbstract());
|
||||
assert(NumEl > 0 && "NumEl of a PackedType must be greater than 0");
|
||||
assert((ElType->isInteger() || ElType->isFloatingPoint() ||
|
||||
isa<OpaqueType>(ElType)) &&
|
||||
"Elements of a PackedType must be a primitive type");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user