mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Fix an assertion
Contributed by Reid Spencer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
11cad517a1
commit
e83593b2d3
@ -412,7 +412,7 @@ StructType::StructType(const std::vector<const Type*> &Types)
|
||||
ContainedTys.reserve(Types.size());
|
||||
bool isAbstract = false;
|
||||
for (unsigned i = 0; i < Types.size(); ++i) {
|
||||
assert(Types[i] != Type::VoidTy && "Void type in method prototype!!");
|
||||
assert(Types[i] != Type::VoidTy && "Void type for structure field!!");
|
||||
ContainedTys.push_back(PATypeHandle(Types[i], this));
|
||||
isAbstract |= Types[i]->isAbstract();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user