1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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 48510f16fb
commit f988544dcf

View File

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