summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-01 20:06:10 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-01 20:06:10 +0000
commitdfb2e7d7c97990f5f3d6edbb204870ea8289642d (patch)
treebcd251cd2a0bf5131cf8c834fbb481a3812970fb /lib/Transforms/Instrumentation
parent5beb8badb1a8e528d0d64a7f46799d30dfc9f859 (diff)
downloadllvm-dfb2e7d7c97990f5f3d6edbb204870ea8289642d.tar.gz
llvm-dfb2e7d7c97990f5f3d6edbb204870ea8289642d.tar.bz2
llvm-dfb2e7d7c97990f5f3d6edbb204870ea8289642d.tar.xz
Use new form of unconditional branch constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r--lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
index 7de1b3c52e..a4197cbb20 100644
--- a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
+++ b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
@@ -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;