]> granicus.if.org Git - clang/commit
[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)
commite1138b8165f43da9921b5545b4958431ba7c7195
treefd4d726de5994610f524e3b38ef76ee685ed7509
parent2b29b6937bcb5f43b5572b70837a6374b43927c5
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/CallEvent.cpp
test/Analysis/osobject-retain-release.cpp