diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-07 16:47:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-07 16:47:42 +0000 |
| commit | f50b723d9cea9af594086e5964f13099c02370c5 (patch) | |
| tree | 551539c86996629b5f93f1c0a2fa255221b4b658 /llvm/lib/VMCore | |
| parent | 5c764a5a9bf6bb29d3a4f3bf2da9f84e89560d01 (diff) | |
| download | bcm5719-llvm-f50b723d9cea9af594086e5964f13099c02370c5.tar.gz bcm5719-llvm-f50b723d9cea9af594086e5964f13099c02370c5.zip | |
Modules must have a valid, nonnull type. Make them void
llvm-svn: 463
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Module.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp index 618e27b873d..4ab8bb06fc6 100644 --- a/llvm/lib/VMCore/Module.cpp +++ b/llvm/lib/VMCore/Module.cpp @@ -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) { } |

