]> granicus.if.org Git - clang/commit
[analyzer] Fix a crash in RetainCountChecker - we should not rely on CallEnter::getCa...
authorAnna Zaks <ganna@apple.com>
Thu, 25 Apr 2013 00:41:32 +0000 (00:41 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 25 Apr 2013 00:41:32 +0000 (00:41 +0000)
commit3d8f462d58a4be21f9f5d287253b9b2565506ca5
tree896410961dc5c92f91640b21d951c7b7e22d5e0e
parentc873b51aea82cb7232c86c0012b9f493a62ef003
[analyzer] Fix a crash in RetainCountChecker - we should not rely on CallEnter::getCallExpr to return non-NULL

We get a CallEnter with a null expression, when processing a destructor. All other users of
CallEnter::getCallExpr work fine with null as return value.

(Addresses PR15832, Thanks to Jordan for reducing the test case!)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
test/Analysis/retain-release.mm