diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-04 18:58:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-04 18:58:04 +0000 |
commit | ba954f3284be2995b87f1cfaa527468e8211a102 (patch) | |
tree | 85e9c5fd655e764f843e876d7ac0915d19f1f605 /llvm/lib/Analysis/DataStructure/TopDownClosure.cpp | |
parent | 0559691163b6cd1008a63130c5782389e9a08245 (diff) | |
download | bcm5719-llvm-ba954f3284be2995b87f1cfaa527468e8211a102.tar.gz bcm5719-llvm-ba954f3284be2995b87f1cfaa527468e8211a102.zip |
Fix the Regression/Transforms/DSAnalysis/recursion.ll regression.
llvm-svn: 20031
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/TopDownClosure.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp index 85c83a16560..bbce45b568d 100644 --- a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -241,10 +241,9 @@ void TDDataStructures::inlineGraphIntoCallees(DSGraph &Graph) { for (BUDataStructures::ActualCalleesTy::const_iterator I = IP.first; I != IP.second; ++I) { DSGraph& CalleeGraph = getDSGraph(*I->second); - assert(&CalleeGraph != &Graph && "TD need not inline graph into self!"); - - CallSites.insert(std::make_pair(&CalleeGraph, - std::make_pair(I->second, &*CI))); + if (&CalleeGraph != &Graph) + CallSites.insert(std::make_pair(&CalleeGraph, + std::make_pair(I->second, &*CI))); } } |