Fix bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4697 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/IPA/IPModRef.cpp b/lib/Analysis/IPA/IPModRef.cpp
index ab9b770..c36c08f 100644
--- a/lib/Analysis/IPA/IPModRef.cpp
+++ b/lib/Analysis/IPA/IPModRef.cpp
@@ -158,9 +158,8 @@
return 0;
}
- // Remove trivial dead nodes... don't aggressively prune graph though... the
- // graph is short lived anyway.
- Result->removeTriviallyDeadNodes(false);
+ // Remove dead nodes...
+ Result->removeDeadNodes();
// Step #4: Return the clone + the mapping (by ref)
return Result;