forked from OSchip/llvm-project
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
eadcadc54b
commit
d73f9f55f2
|
@ -197,8 +197,8 @@ void TDDataStructures::calculateGraph(Function &F) {
|
||||||
|
|
||||||
// Recompute the Incomplete markers and eliminate unreachable nodes.
|
// Recompute the Incomplete markers and eliminate unreachable nodes.
|
||||||
CG.maskIncompleteMarkers();
|
CG.maskIncompleteMarkers();
|
||||||
CG.markIncompleteNodes(F.hasInternalLinkage() ? DSGraph::IgnoreFormalArgs:
|
CG.markIncompleteNodes(Callee->hasInternalLinkage() ?
|
||||||
DSGraph::MarkFormalArgs
|
DSGraph::IgnoreFormalArgs : DSGraph::MarkFormalArgs
|
||||||
/*&& FIXME: NEED TO CHECK IF ALL CALLERS FOUND!*/);
|
/*&& FIXME: NEED TO CHECK IF ALL CALLERS FOUND!*/);
|
||||||
CG.removeDeadNodes(DSGraph::RemoveUnreachableGlobals);
|
CG.removeDeadNodes(DSGraph::RemoveUnreachableGlobals);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue