1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/lib
Chris Lattner 5eec095b87 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.

llvm-svn: 80533
2009-08-31 03:15:49 +00:00
..
Analysis Fix PR4834, a tricky case where the inliner would resolve an 2009-08-31 03:15:49 +00:00
Archive Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
AsmParser Minor logic simplification. 2009-08-29 23:37:49 +00:00
Bitcode Reapply 79977. 2009-08-28 23:24:31 +00:00
CodeGen PR4747 2009-08-31 01:35:03 +00:00
CompilerDriver convert LoopInfo.h and GraphWriter.h to use raw_ostream 2009-08-23 07:19:13 +00:00
Debugger Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
ExecutionEngine Fix OProfile support after r80406 changed the DebugInfo interface from 2009-08-29 00:44:16 +00:00
Linker Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
MC llvm-mc: MCStreamer cleanups. - Remove EmitLocalSymbol, this is unsupported for now. 2009-08-30 06:17:16 +00:00
Support Fix some possible-use-of-uninitialized warnings. 2009-08-30 21:13:58 +00:00
System remove the last uses of Config/alloca.h 2009-08-23 22:57:38 +00:00
Target Add missed pattern 2009-08-30 19:06:39 +00:00
Transforms Fix PR4834, a tricky case where the inliner would resolve an 2009-08-31 03:15:49 +00:00
VMCore Cleanup whitespace and indentation. 2009-08-29 23:35:16 +00:00
Makefile LLVMC doesn't need ENABLE_PIC to build now. 2009-07-04 03:54:54 +00:00