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:
parent
31e95435b8
commit
6daed111da
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user