Fix an assertion
authorChris Lattner <sabre@nondot.org>
Mon, 29 Mar 2004 00:17:20 +0000 (00:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Mar 2004 00:17:20 +0000 (00:17 +0000)
Contributed by Reid Spencer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12524 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index 5b19cb01d0231cadb9db04c89b851023358d3a43..1e2d741edfdd7549f0873fe78b140437f0eed3ab 100644 (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();
   }