Make sure CWriter's Context get's initialized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-07-17 03:43:21 +00:00
parent 10a3659101
commit 53448652e4

View File

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