]> granicus.if.org Git - clang/commit
Perform the receiver-expression transformations regardless of
authorJohn McCall <rjmccall@apple.com>
Fri, 1 Mar 2013 09:20:14 +0000 (09:20 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 1 Mar 2013 09:20:14 +0000 (09:20 +0000)
commit2fbe92cc2464c77825209df9a262d9d13e5ba64c
tree28570f428cfee5347b731d2319943141d3d7be0e
parentb2381b1c91ac5dc2407e98f36e3a6ba93d771791
Perform the receiver-expression transformations regardless of
whether we already have a method.  Fixes a bug where we were
failing to properly contextually convert a message receiver
during template instantiation.

As a side-effect, we now actually perform correct method lookup
after adjusting a message-send to integral or non-ObjC pointer
types (legal outside of ARC).

rdar://13305374

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176339 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprObjC.cpp
test/CodeGenObjCXX/message.mm [new file with mode: 0644]
test/SemaObjC/bad-receiver-1.m
test/SemaObjC/message.m
test/SemaObjC/super.m
test/SemaObjC/warn-isa-ref.m