[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)
commitff4b55949a64f9cce4b2ccf0a13c503cf805838a
treed4a3019f73766e94784f7e3d563e5915fd03e187
parentc6c9dc877301ed41566344664ef9502c95f8a411
[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

llvm-svn: 327727
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
clang/test/Analysis/retaincountchecker-compoundregion.m [new file with mode: 0644]