OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e8f865
)
remove use of BasicBlock::getNext
author
Chris Lattner
<sabre@nondot.org>
Tue, 17 Apr 2007 17:54:12 +0000
(17:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 17 Apr 2007 17:54:12 +0000
(17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36202
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Instrumentation/RSProfiling.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Instrumentation/RSProfiling.cpp
b/lib/Transforms/Instrumentation/RSProfiling.cpp
index
680347e
..
f97b2bc
100644
(file)
--- a/
lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/
lib/Transforms/Instrumentation/RSProfiling.cpp
@@
-455,10
+455,11
@@
void ProfilerRS::ProcessBackEdge(BasicBlock* src, BasicBlock* dst, Function& F)
// add in edge from C using x in A'
//a:
- BasicBlock* bbC = new BasicBlock("choice", &F, src->getNext() );
+ Function::iterator BBN = src; ++BBN;
+ BasicBlock* bbC = new BasicBlock("choice", &F, BBN);
//ChoicePoints.insert(bbC);
- B
asicBlock* bbCp =
-
new BasicBlock("choice", &F, cast<BasicBlock>(Translate(src))->getNext()
);
+ B
BN = cast<BasicBlock>(Translate(src));
+
BasicBlock* bbCp = new BasicBlock("choice", &F, ++BBN
);
ChoicePoints.insert(bbCp);
//b: