Fix the Regression/Transforms/DSAnalysis/recursion.ll regression.

llvm-svn: 20031
This commit is contained in:
Chris Lattner 2005-02-04 18:58:04 +00:00
parent 0559691163
commit ba954f3284
1 changed files with 3 additions and 4 deletions

View File

@ -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)));
}
}