aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
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
commitc5bdc556f6a65c677e0ed73f918c3000ecad33af (patch)
treec99b148111f86c64949f10b390905233c21e3cf3 /lib/CodeGen/CodeGenFunction.h
parent06284c1dc56caed19850bc3766c89f51763724c3 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions