Use new form of unconditional branch constructor.
[oota-llvm.git] / lib / Transforms / Instrumentation / ProfilePaths / CombineBranch.cpp
index 7de1b3c52e632fef3c1490137eefe6f350dddeed..a4197cbb2077296d17ddf7b4033418b58b3a0e1b 100644 (file)
@@ -110,7 +110,7 @@ void CombineBranches::removeRedundant(std::map<BasicBlock *, BasicBlock *> &be){
       sameTarget.push_back(MI->first);
 
       BasicBlock *newBB = new BasicBlock("newCommon", MI->first->getParent());
-      BranchInst *newBranch = new BranchInst(MI->second, 0, 0, newBB);
+      BranchInst *newBranch = new BranchInst(MI->second, newBB);
 
       std::map<PHINode *, std::vector<unsigned int> > phiMap;