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:
b3020d7
)
one more try at making this simpler, hopefully it won't break everything :)
author
Chris Lattner
<sabre@nondot.org>
Wed, 2 Sep 2009 04:34:06 +0000
(
04:34
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 2 Sep 2009 04:34:06 +0000
(
04:34
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80759
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraphSCCPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraphSCCPass.cpp
b/lib/Analysis/IPA/CallGraphSCCPass.cpp
index
d21e031
..
25964b2
100644
(file)
--- a/
lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/
lib/Analysis/IPA/CallGraphSCCPass.cpp
@@
-178,11
+178,11
@@
void CGPassManager::RefreshCallGraph(std::vector<CallGraphNode*> &CurSCC,
"CallGraphSCCPass did not update the CallGraph correctly!");
// Just remove the edge from the set of callees.
- bool wasLast = I + 1 == E;
CGN->removeCallEdge(I);
- if (wasLast)
- // I is now a singular iterator, do not compare with E.
- break;
+
+ // If we removed the last edge, get out of the loop.
+ if (CGN->empty()) break;
+
E = CGN->end();
continue;
}