summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-08 23:07:39 +0000
committerChris Lattner <sabre@nondot.org>2003-02-08 23:07:39 +0000
commitd73f9f55f221e205cb8240826858d22e8c3388b7 (patch)
tree0ced83f9b3b9682d45ac1b96aa08f7d6e11af789 /llvm/lib
parenteadcadc54b09086453b98eb30091bde5bf75c973 (diff)
downloadbcm5719-llvm-d73f9f55f221e205cb8240826858d22e8c3388b7.tar.gz
bcm5719-llvm-d73f9f55f221e205cb8240826858d22e8c3388b7.zip
Fix a bug where we would mark the callees arguments incomplete if the caller was external.
llvm-svn: 5510
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DataStructure/TopDownClosure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
index 8df60ba2fa8..d4a19dfae52 100644
--- a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud