Make sure CWriter's Context get's initialized.

llvm-svn: 76147
This commit is contained in:
Daniel Dunbar 2009-07-17 03:43:21 +00:00
parent 39d6faa31e
commit d0ed53e711
1 changed files with 2 additions and 0 deletions

View File

@ -1816,6 +1816,8 @@ static SpecialGlobalClass getGlobalVariableClass(const GlobalVariable *GV) {
bool CWriter::doInitialization(Module &M) {
FunctionPass::doInitialization(M);
// Initialize
TheModule = &M;