diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-29 00:17:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-29 00:17:20 +0000 |
commit | e83593b2d301073c5c4bbad232bee5aca214bbe5 (patch) | |
tree | 8d7318d8a3a28196d8426dd64ef106b412e8dfc9 | |
parent | 11cad517a1747d8c426612a8f241dcfe277b148a (diff) | |
download | external_llvm-e83593b2d301073c5c4bbad232bee5aca214bbe5.zip external_llvm-e83593b2d301073c5c4bbad232bee5aca214bbe5.tar.gz external_llvm-e83593b2d301073c5c4bbad232bee5aca214bbe5.tar.bz2 |
Fix an assertion
Contributed by Reid Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12524 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 5b19cb0..1e2d741 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -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(); } |