]> granicus.if.org Git - clang/commitdiff
Update for IRBuilder API change.
authorOwen Anderson <resistor@mac.com>
Wed, 8 Jul 2009 20:52:20 +0000 (20:52 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 8 Jul 2009 20:52:20 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75041 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CodeGenFunction.cpp

index 134dc79db588570f8d115ba597aace77cf4212fa..46e948e4d5a9db4bcd2c0e517cbbeaf6b700f515 100644 (file)
@@ -1173,7 +1173,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
       llvm::GlobalValue::InternalLinkage, ".objc_load_function",
       &TheModule);
   llvm::BasicBlock *EntryBB = llvm::BasicBlock::Create("entry", LoadFunction);
-  CGBuilderTy Builder;
+  CGBuilderTy Builder(TheModule.getContext());
   Builder.SetInsertPoint(EntryBB);
 
   std::vector<const llvm::Type*> Params(1,
index c3f9364e7ae440d43ce63ad33414aa3f67c8b62d..7b08216bab0aaecb19cef4f93f1c26da89fe582e 100644 (file)
@@ -27,6 +27,7 @@ using namespace CodeGen;
 CodeGenFunction::CodeGenFunction(CodeGenModule &cgm) 
   : BlockFunction(cgm, *this, Builder), CGM(cgm),
     Target(CGM.getContext().Target),
+    Builder(cgm.getModule().getContext()),
     DebugInfo(0), SwitchInsn(0), CaseRangeBlock(0), InvokeDest(0), 
     CXXThisDecl(0) {
   LLVMIntTy = ConvertType(getContext().IntTy);