diff options
author | Anna Zaks <ganna@apple.com> | 2012-01-07 16:49:46 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-01-07 16:49:46 +0000 |
commit | 17f57b0a009f15065a99df73ac85352002706ac1 (patch) | |
tree | ca1942c5b430962e1d18d914f3de127a837026ca /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 912ae8a33ca0c5ef5c3548619af2d1a9e39389ab (diff) | |
download | bcm5719-llvm-17f57b0a009f15065a99df73ac85352002706ac1.tar.gz bcm5719-llvm-17f57b0a009f15065a99df73ac85352002706ac1.zip |
[analyzer] Fix use-after-free in HandleTranslationUnit.
A patch by Dmitri Gribenko!
The attached patch fixes a use-after-free in AnalysisConsumer::HandleTranslationUnit. The problem is that
BugReporter's destructor runs after AnalysisManager has been already
deleted. The fix introduces a scope to force correct destruction
order.
A crash happens only when reports have been added in AnalysisConsumer::HandleTranslationUnit's BugReporter. We don't have such checkers in clang so no test.
llvm-svn: 147732
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
0 files changed, 0 insertions, 0 deletions