]> granicus.if.org Git - clang/commit
[analyzer] Don't crash if a block's signature just has the return type.
authorJordan Rose <jordan_rose@apple.com>
Thu, 30 May 2013 18:14:27 +0000 (18:14 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 30 May 2013 18:14:27 +0000 (18:14 +0000)
commitb347c76054a0a4b8e6d1fce44314f6daf3294c69
tree7eb1ef3b906edcea5be11c13faa8576bf3f6d41a
parent7c731f5ac7b995fe57c4bda87ed5f59c58a33eb5
[analyzer] Don't crash if a block's signature just has the return type.

It is okay to declare a block without an argument list: ^ {} or ^void {}.
In these cases, the BlockDecl's signature-as-written will just contain
the return type, rather than the entire function type. It is unclear if
this is intentional, but the analyzer shouldn't crash because of it.

<rdar://problem/14018351>

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