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 | d7be188323744f44d962f92f94a95b74c4b3246e (patch) | |
tree | f34330a735e2665e97178e3a4fe5812cc2ac6820 /lib/Analysis/DataStructure/TopDownClosure.cpp | |
parent | 595dc5408ad809b9a9a417db275c43242e54b8dc (diff) |
Fix the Regression/Transforms/DSAnalysis/recursion.ll regression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/TopDownClosure.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 85c83a1656..bbce45b568 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/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))); } } |