llvm-project/llvm/lib
Zhou Sheng c1cf629e41 Fix a PassManager pointer use-after-free bug.
The bug can be triggered when we require LoopInfo analysis ahead of DominatorTree construction in a Module Pass. The cause is that the LoopInfo analysis itself also invokes DominatorTree construction, therefore, when PassManager schedules LoopInfo, it will add DominatorTree first. Then after that, when the PassManger turns to schedule DominatorTree invoked by the above ModulePass, it finds there is already a DominatorTree, so it delete the redundant one. However, somehow it still try to access that pass pointer after free as code pasted below, which results in segment fault.

llvm-svn: 168581
2012-11-26 05:45:53 +00:00
..
Analysis Corrects a problem where we reply exclusively of GEPs to drive 2012-11-21 23:50:04 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Make the AttrListPtr object a part of the LLVMContext. 2012-11-20 05:09:20 +00:00
Bitcode Code Custodian: 2012-11-25 15:23:39 +00:00
CodeGen Refactor to make helper method static. 2012-11-25 08:08:58 +00:00
DebugInfo Add some basic support for the fission addr forms to DebugInfo. 2012-11-16 23:44:11 +00:00
ExecutionEngine IntelJITEventsWrapper.h: Prune two members, FinalizeThreadFunc and FinalizeProcessFunc, for now. [-Wunused-private-field] 2012-11-22 13:18:37 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC Add support for .cfi_register now that it is easy to extent the representation 2012-11-25 15:14:49 +00:00
Object s/assert/llvm_unreachable/ 2012-11-14 17:58:11 +00:00
Support Allow using MemoryBuffers with yaml::Stream directly. 2012-11-19 23:21:47 +00:00
TableGen Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Target PPC: Reinstate the fatal error when trying to emit a macho file. 2012-11-24 15:23:49 +00:00
Transforms instcombine: Migrate toascii optimizations 2012-11-26 03:38:52 +00:00
VMCore Fix a PassManager pointer use-after-free bug. 2012-11-26 05:45:53 +00:00
CMakeLists.txt Move TableGen's parser and entry point into a library 2011-10-01 16:41:13 +00:00
LLVMBuild.txt LLVMBuild: Introduce a common section which currently has a list of the 2011-12-12 22:45:54 +00:00
Makefile Remove more of llvmc and dependencies. 2011-09-20 00:34:27 +00:00