Start using the nicer terminator auto-insertion API
[oota-llvm.git] / lib / Transforms / Utils / InlineFunction.cpp
index 265d5c419acf6f91c63555f58eb06162099614ca..a0fc9bf1cff128169fba0ebb35408afcc6c133ce 100644 (file)
@@ -238,7 +238,7 @@ bool InlineFunction(CallSite CS) {
         // invoke site.  Once this happens, we know that the unwind would cause
         // a control transfer to the invoke exception destination, so we can
         // transform it into a direct branch to the exception destination.
-        BranchInst *BI = new BranchInst(InvokeDest, UI);
+        new BranchInst(InvokeDest, UI);
 
         // Delete the unwind instruction!
         UI->getParent()->getInstList().pop_back();