]> granicus.if.org Git - clang/commit
ObjC kindof: set the type of a conditional expression when involving kindof.
authorManman Ren <manman.ren@gmail.com>
Fri, 6 May 2016 19:35:02 +0000 (19:35 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 6 May 2016 19:35:02 +0000 (19:35 +0000)
commit4f874bf84eb3656f5361f72e317e3b4a91122354
treeef7c343e6739b2cbca312b9a13241497245618a5
parent0f9d5d9db32bcd4e8f1a5a11c71bba3ae86227f7
ObjC kindof: set the type of a conditional expression when involving kindof.

When either LHS or RHS is a kindof type, we return a kindof type.

rdar://problem/20513780

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268781 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/SemaObjC/kindof.m