[analyzer] Fix unknown block calls to have zero parameters.
authorArtem Dergachev <artem.dergachev@gmail.com>
Sat, 15 Dec 2018 02:13:26 +0000 (02:13 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Sat, 15 Dec 2018 02:13:26 +0000 (02:13 +0000)
commit46f34624d215b2b6851416d2475a5dd152f862e9
tree0fcd720232f98b0c3a406eea80435cffef4f9f78
parent0ce45fae72913eea670df9bc72de5631b61d3392
[analyzer] Fix unknown block calls to have zero parameters.

Right now they report to have one parameter with null decl,
because initializing an ArrayRef of pointers with a nullptr
yields an ArrayRef to an array of one null pointer.

Fixes a crash in the OSObject section of RetainCountChecker.

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

llvm-svn: 349229
clang/lib/StaticAnalyzer/Core/CallEvent.cpp
clang/test/Analysis/osobject-retain-release.cpp