tracking API changes arising from r49277

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49279 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index a07eaff..e1c8d38 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -38,7 +38,7 @@
   if (BB) return BB;
   
   // Create, but don't insert, the new block.
-  return BB = new llvm::BasicBlock(S->getName());
+  return BB = llvm::BasicBlock::Create(S->getName());
 }
 
 llvm::Constant *
@@ -69,7 +69,7 @@
                                               ParamTypes.begin(),
                                               OMD->param_size(),
                                               OMD->isVariadic());
-  llvm::BasicBlock *EntryBB = new llvm::BasicBlock("entry", CurFn);
+  llvm::BasicBlock *EntryBB = llvm::BasicBlock::Create("entry", CurFn);
   
   // Create a marker to make it easy to insert allocas into the entryblock
   // later.  Don't create this with the builder, because we don't want it
@@ -188,7 +188,7 @@
     CurFn->setParamAttrs(llvm::PAListPtr::get(&PAWI, 1));
   }
 
-  llvm::BasicBlock *EntryBB = new llvm::BasicBlock("entry", CurFn);
+  llvm::BasicBlock *EntryBB = llvm::BasicBlock::Create("entry", CurFn);
   
   // Create a marker to make it easy to insert allocas into the entryblock
   // later.  Don't create this with the builder, because we don't want it
@@ -252,7 +252,7 @@
 void CodeGenFunction::StartBlock(const char *N) {
   llvm::BasicBlock *BB = Builder.GetInsertBlock();
   if (!isDummyBlock(BB))
-    EmitBlock(new llvm::BasicBlock(N));
+    EmitBlock(llvm::BasicBlock::Create(N));
   else
     BB->setName(N);
 }