Push LLVMContext through GlobalVariables and IRBuilder.
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.cpp
index d2cf93ec17e38c250d3fa8810d3a1c55d32a07f7..b940b9e3ec01d7ad306dfef774ef5f6d564c9adf 100644 (file)
@@ -1258,7 +1258,7 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) {
         isThreadLocal = Record[7];
 
       GlobalVariable *NewGV =
-        new GlobalVariable(Ty, isConstant, Linkage, 0, "", TheModule, 
+        new GlobalVariable(Context, Ty, isConstant, Linkage, 0, "", TheModule, 
                            isThreadLocal, AddressSpace);
       NewGV->setAlignment(Alignment);
       if (!Section.empty())