]> granicus.if.org Git - clang/commit
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)
commit86a3fc0fb95b653579aabf38588b96635d159b9c
tree38cf6a83ae9d642c2bd8b6c0dec4b28d2328ff1e
parentd70e0f958a8049c361c80aa5e8092a05af9595c9
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266648 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/SemaObjC/block-omitted-return-type.m [new file with mode: 0644]
test/SemaOpenCL/invalid-block.cl