]> granicus.if.org Git - clang/commit
Adjust the special non-C++ enum block return type inference
authorJohn McCall <rjmccall@apple.com>
Sat, 9 Mar 2013 00:54:31 +0000 (00:54 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 9 Mar 2013 00:54:31 +0000 (00:54 +0000)
commit41d016454b48f25c93d4b3fb84cfc7e426a9bd73
tree287b47693c92be2cb7cd34b8cfb080000e206283
parent83972f128e9218c051692bf96361327a701aeb79
Adjust the special non-C++ enum block return type inference
so that it looks through certain syntactic forms and applies
even if normal inference would have succeeded.

There is potential for source incompatibility from this
change, but overall we feel that it produces a much
cleaner and more defensible result, and the block
compatibility rules should curb a lot of the potential
for annoyance.

rdar://13200889

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLambda.cpp
test/SemaObjC/blocks.m