mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
Assert that elements of packed are pointer/float/opaque.
llvm-svn: 34165
This commit is contained in:
parent
fded2d41c1
commit
8594672a45
@ -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…
Reference in New Issue
Block a user