Fix resolution of indirect function calls... whoops

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-14 23:27:18 +00:00
parent 92d5e30e76
commit 98d6f0ad03

View File

@ -799,7 +799,7 @@ void DSGraph::markIncompleteNodes(unsigned Flags) {
// Mark all global nodes as incomplete...
if ((Flags & DSGraph::IgnoreGlobals) == 0)
for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
if (Nodes[i]->NodeType & DSNode::GlobalNode)
if (Nodes[i]->NodeType & DSNode::GlobalNode && Nodes[i]->getNumLinks())
markIncompleteNode(Nodes[i]);
}