Block: Fix a crash when we have type attributes or qualifiers with omitted
authorManman Ren <manman.ren@gmail.com>
Mon, 18 Apr 2016 18:40:51 +0000 (18:40 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 18 Apr 2016 18:40:51 +0000 (18:40 +0000)
commit99d133482f7c7534bf4af6c0c2666b44f5b03a5f
treed550b13c27f16508c33071c8ad5f30a34c599cc6
parent7f0756cc1fc2a3591f69b498143022055f0d338e
Block: Fix a crash when we have type attributes or qualifiers with omitted
return type.

Emit a warning instead of crashing in IR generation.

rdar://22762981

Differential Revision: http://reviews.llvm.org/D18567

llvm-svn: 266648
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaType.cpp
clang/test/SemaObjC/block-omitted-return-type.m [new file with mode: 0644]
clang/test/SemaOpenCL/invalid-block.cl