]> granicus.if.org Git - clang/commit
[analyzer] Fix crashes in RetainCountChecker when underlying region is not a var
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 16 Mar 2018 18:16:47 +0000 (18:16 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 16 Mar 2018 18:16:47 +0000 (18:16 +0000)
commita8785b6f0a170b361b4a856dd8245f8a8d7dc771
tree98eb65e6a9a89367cc198670ae529f800162b383
parentf1afbf5f655d26b648084b8376d5b1916d664199
[analyzer] Fix crashes in RetainCountChecker when underlying region is not a var

For other regions, the error message contains a good indication of the
problem, and there, in general, nothing helpful we can print.
Error pointer to the problematic expression seems enough.

rdar://37323555

Differential Revision: https://reviews.llvm.org/D44409

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327727 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
test/Analysis/retaincountchecker-compoundregion.m [new file with mode: 0644]