summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-14 19:33:16 +0000
committerChris Lattner <sabre@nondot.org>2002-09-14 19:33:16 +0000
commitb2a0fbea11e4996a613cb264cff6edbc7626e7e5 (patch)
treed2c79ed4c945235d0d2ab438afa2bf8037acaa59 /lib
parent7c268984010494658aae70cb3e6bbbceb2ca9855 (diff)
downloadllvm-b2a0fbea11e4996a613cb264cff6edbc7626e7e5.tar.gz
llvm-b2a0fbea11e4996a613cb264cff6edbc7626e7e5.tar.bz2
llvm-b2a0fbea11e4996a613cb264cff6edbc7626e7e5.tar.xz
Fix bug I introduced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp b/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
index b8edb2260a..8668be1590 100644
--- a/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
+++ b/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
@@ -282,9 +282,6 @@ void insertBB(Edge ed,
TerminatorInst *TI=BB1->getTerminator();
BasicBlock *newBB=new BasicBlock(ctr, BB1->getParent());
- //get code for the new BB
- edgeCode->getCode(rInst, countInst, BB1->getParent(), newBB, numPaths, Methno);
-
//Is terminator a branch instruction?
//then we need to change branch destinations to include new BB
@@ -309,6 +306,10 @@ void insertBB(Edge ed,
Instruction *newBI2=new BranchInst(BB2);
newBB->getInstList().push_back(newBI2);
}
+
+ //get code for the new BB
+ edgeCode->getCode(rInst, countInst, BB1->getParent(), newBB, numPaths, Methno);
+
//std::cerr<<"After casting\n";
//get code for the new BB