forked from OSchip/llvm-project
Fix an assertion
Contributed by Reid Spencer llvm-svn: 12524
This commit is contained in:
parent
dd7ce6c31a
commit
587a9f1416
|
@ -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…
Reference in New Issue