From: Brian Gaeke Date: Tue, 1 Jun 2004 20:06:10 +0000 (+0000) Subject: Use new form of unconditional branch constructor. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dfb2e7d7c97990f5f3d6edbb204870ea8289642d;p=oota-llvm.git Use new form of unconditional branch constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13930 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp index 7de1b3c52e6..a4197cbb207 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp @@ -110,7 +110,7 @@ void CombineBranches::removeRedundant(std::map &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 > phiMap;