llvm/lib/Analysis/IPA
Chris Lattner b374b90e81 Fix PR4834, a tricky case where the inliner would resolve an
indirect function pointer, inline it, then go to delete the body.
The problem is that the callgraph had other references to the function,
though the inliner had no way to know it, so we got a dangling pointer
and an invalid iterator out of the deal.

The fix to this is pretty simple: stop the inliner from deleting the
function by knowing that there are references to it.  Do this by making
CallGraphNodes contain a refcount.  This requires moving deletion of 
available_externally functions to the module-level cleanup sweep where
it belongs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80533 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-31 03:15:49 +00:00
..
Andersens.cpp Mark Andersen's as experimental. 2009-08-28 00:45:47 +00:00
CallGraph.cpp Fix PR4834, a tricky case where the inliner would resolve an 2009-08-31 03:15:49 +00:00
CallGraphSCCPass.cpp Fix some nasty callgraph dangling pointer problems in 2009-08-31 00:19:58 +00:00
CMakeLists.txt
FindUsedTypes.cpp Change Pass::print to take a raw ostream instead of std::ostream, 2009-08-23 06:03:38 +00:00
GlobalsModRef.cpp Revert r66920. It was causing failures in the self-hosting buildbot (in release 2009-03-13 21:15:59 +00:00
Makefile