1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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 31e95435b8
commit 6daed111da

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