The tarjan iterator now returns a reference to the current SCC, not a possibly null pointer!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-08-31 19:35:16 +00:00
parent b55cae23cb
commit 6c5fd8e055
7 changed files with 11 additions and 11 deletions

View File

@@ -25,6 +25,6 @@ bool CallGraphSCCPass::run(Module &M) {
bool Changed = false;
for (TarjanSCC_iterator<CallGraph*> I = tarj_begin(&CG), E = tarj_end(&CG);
I != E; ++I)
Changed = runOnSCC(**I);
Changed = runOnSCC(*I);
return Changed;
}