Use one destination constructor for the unconditional branch.
[oota-llvm.git] / lib / Transforms / Utils / UnifyFunctionExitNodes.cpp
index 064bba5dddd0f36de4596f3bc4ce6940c4f82271..89710edaf56deb003cfa2b15aced602ac0a2ba3c 100644 (file)
@@ -66,7 +66,7 @@ bool UnifyFunctionExitNodes::runOnFunction(Function &F) {
            E = UnwindingBlocks.end(); I != E; ++I) {
       BasicBlock *BB = *I;
       BB->getInstList().pop_back();  // Remove the return insn
-      new BranchInst(UnwindBlock, 0, 0, BB);
+      new BranchInst(UnwindBlock, BB);
     }
   }