From: Chris Lattner Date: Sat, 8 Feb 2003 23:07:39 +0000 (+0000) Subject: Fix a bug where we would mark the callees arguments incomplete if the caller was... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1ef0da2e25918ed38b3d6512d414435fdc331e1d;p=oota-llvm.git Fix a bug where we would mark the callees arguments incomplete if the caller was external. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 8df60ba2fa8..d4a19dfae52 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -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); }