diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 834c594b29d..11755694009 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -135,6 +135,7 @@ void TDDataStructures::calculateGraphFrom(Function &F) { void TDDataStructures::inlineGraphIntoCallees(DSGraph &Graph) { // Recompute the Incomplete markers and eliminate unreachable nodes. + Graph.removeTriviallyDeadNodes(); Graph.maskIncompleteMarkers(); // If any of the functions has incomplete incoming arguments, don't mark any