API changes for class Use size reduction, wave 1.
[oota-llvm.git] / lib / VMCore / Function.cpp
index 6fd3af4f9d87b80211da0d6f6c3bc4cc194db329..302eff30ff3f2cb01ee86132925ad2d0163da5cc 100644 (file)
@@ -24,7 +24,7 @@
 using namespace llvm;
 
 BasicBlock *ilist_traits<BasicBlock>::createSentinel() {
-  BasicBlock *Ret = new BasicBlock();
+  BasicBlock *Ret = BasicBlock::Create();
   // This should not be garbage monitored.
   LeakDetector::removeGarbageObject(Ret);
   return Ret;