diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp index f5d435fe45d4..5019d9084506 100644 --- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -48,6 +48,11 @@ bool BUDataStructures::run(Module &M) { } NumCallEdges += ActualCallees.size(); + + // At the end of the bottom-up pass, the globals graph becomes complete. + // FIXME: This is not the right way to do this, but it is sorta better than + // nothing! + GlobalsGraph->maskIncompleteMarkers(); return false; }