Mark external globals incomplete in the BU Globals graph, fixing
authorChris Lattner <sabre@nondot.org>
Tue, 22 Mar 2005 22:10:22 +0000 (22:10 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Mar 2005 22:10:22 +0000 (22:10 +0000)
Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20773 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/BottomUpClosure.cpp

index 0a9994c41164149529ad45ee4db9ab0e48bd22a4..47ffc87cc7d5ed31d035dd2792a6fb930ac11808 100644 (file)
@@ -82,6 +82,9 @@ bool BUDataStructures::runOnModule(Module &M) {
   GlobalsGraph->removeTriviallyDeadNodes();
   GlobalsGraph->maskIncompleteMarkers();
 
+  // Mark external globals incomplete.
+  GlobalsGraph->markIncompleteNodes(DSGraph::IgnoreGlobals);
+
   // Merge the globals variables (not the calls) from the globals graph back
   // into the main function's graph so that the main function contains all of
   // the information about global pools and GV usage in the program.