From d0ed53e711448baf0a7f2fae3a341f52fb02a449 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 17 Jul 2009 03:43:21 +0000 Subject: [PATCH] Make sure CWriter's Context get's initialized. llvm-svn: 76147 --- llvm/lib/Target/CBackend/CBackend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index cca896b59d3c..58cc07d1bb1d 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -1816,6 +1816,8 @@ static SpecialGlobalClass getGlobalVariableClass(const GlobalVariable *GV) { bool CWriter::doInitialization(Module &M) { + FunctionPass::doInitialization(M); + // Initialize TheModule = &M;