[Sema] Don't crash when __attribute__((nonnull)) is applied to blocks
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 7 Apr 2015 06:01:53 +0000 (06:01 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 7 Apr 2015 06:01:53 +0000 (06:01 +0000)
commit06864814e502e631b2c07463f6e5be7e60a2260d
treecbf4410442847f1e35e6b626d218c4692b552af3
parent1f508014df7da33d684a5c0cb3c059a675a0aacf
[Sema] Don't crash when __attribute__((nonnull)) is applied to blocks

A simple case of asserting isFunctionOrMethod when we should have
asserted isFunctionOrMethodOrBlock.

This fixes PR23117.

llvm-svn: 234297
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/SemaObjC/nonnull.m