]> granicus.if.org Git - clang/commit
Fix <rdar://problem/5986833> clang on xcode: incompatible type returning 'void',...
authorSteve Naroff <snaroff@apple.com>
Thu, 5 Jun 2008 14:49:39 +0000 (14:49 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 5 Jun 2008 14:49:39 +0000 (14:49 +0000)
commite2af8b16cb66b59ac3570c5561289469bd852699
tree817248368733f1ae6f7fb89339f056847e29b235
parent3d2c22b1d334fa74d26a5f21841cb55df5dfdd1a
Fix <rdar://problem/5986833> clang on xcode: incompatible type returning 'void', expected 'int'.

- Changed Sema::ObjCActOnStartOfMethodDef() to more accurately type "self" in factory methods.
- Changed Sema::ActOnInstanceMessage() to use the new type to restrict the lookup.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52005 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExprObjC.cpp
test/Sema/objc-method-lookup.m [new file with mode: 0644]