Modules must have a valid, nonnull type. Make them void
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 16:47:42 +0000 (16:47 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 16:47:42 +0000 (16:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@463 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Module.cpp

index 618e27b873d1327b8346163544e1c1af3546fc7d..4ab8bb06fc6281c31999e34818c71a4b6dc7f915 100644 (file)
@@ -10,6 +10,7 @@
 #include "llvm/InstrTypes.h"
 #include "llvm/ValueHolderImpl.h"
 #include "llvm/Support/STLExtras.h"
+#include "llvm/Type.h"
 
 // Instantiate Templates - This ugliness is the price we have to pay
 // for having a DefHolderImpl.h file seperate from DefHolder.h!  :(
@@ -17,7 +18,7 @@
 template class ValueHolder<Method, Module, Module>;
 
 Module::Module()
-  : Value(0/*TODO: REAL TYPE*/, Value::ModuleVal, ""), SymTabValue(this),
+  : Value(Type::VoidTy, Value::ModuleVal, ""), SymTabValue(this),
     MethodList(this, this) {
 }