Fix a bug where we would mark the callees arguments incomplete if the caller was external.

llvm-svn: 5510
This commit is contained in:
Chris Lattner 2003-02-08 23:07:39 +00:00
parent eadcadc54b
commit d73f9f55f2
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ void TDDataStructures::calculateGraph(Function &F) {
// Recompute the Incomplete markers and eliminate unreachable nodes.
CG.maskIncompleteMarkers();
CG.markIncompleteNodes(F.hasInternalLinkage() ? DSGraph::IgnoreFormalArgs:
DSGraph::MarkFormalArgs
CG.markIncompleteNodes(Callee->hasInternalLinkage() ?
DSGraph::IgnoreFormalArgs : DSGraph::MarkFormalArgs
/*&& FIXME: NEED TO CHECK IF ALL CALLERS FOUND!*/);
CG.removeDeadNodes(DSGraph::RemoveUnreachableGlobals);
}