<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
If you put a VoidTy as a field of a StructType, you get:<BR>
<BR>
 /proj/work/llvm/llvm/lib/VMCore/Type.cpp:380: llvm::StructType::StructType(const std::vector<const llvm::Type*, std::allocator<const llvm::Type*> >&): Assertion `Types[i] != Type::VoidTy && "Void type in method prototype!!"' failed.<BR>
<BR>
I believe "method prototype" should be "structure field" so the attached patch fixes this assertion's comment.<BR>
<BR>
Reid.<BR>
<BR>
</BODY>
</HTML>