Fix resolution of indirect function calls... whoops

llvm-svn: 5576
This commit is contained in:
Chris Lattner 2003-02-14 23:27:18 +00:00
parent 7aae29d426
commit 148d67f088

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]);
}