Fix resolution of indirect function calls... whoops
authorChris Lattner <sabre@nondot.org>
Fri, 14 Feb 2003 23:27:18 +0000 (23:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Feb 2003 23:27:18 +0000 (23:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5576 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index 6371196c1f7dee0f1012543f43d83fa1ac29760d..27247897e57e88574c515f5d4e92b817960796ce 100644 (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]);
 }