summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-01-07 16:49:46 +0000
committerAnna Zaks <ganna@apple.com>2012-01-07 16:49:46 +0000
commit17f57b0a009f15065a99df73ac85352002706ac1 (patch)
treeca1942c5b430962e1d18d914f3de127a837026ca /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent912ae8a33ca0c5ef5c3548619af2d1a9e39389ab (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud