Fix an assertion

Contributed by Reid Spencer

llvm-svn: 12524
This commit is contained in:
Chris Lattner 2004-03-29 00:17:20 +00:00
parent dd7ce6c31a
commit 587a9f1416
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}