]> granicus.if.org Git - clang/commit
Fix http://llvm.org/bugs/show_bug.cgi?id=3544.
authorSteve Naroff <snaroff@apple.com>
Thu, 26 Feb 2009 15:55:06 +0000 (15:55 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 26 Feb 2009 15:55:06 +0000 (15:55 +0000)
commitf1afaf6fe2d94ab265299853f288b676694f7554
tree25227e9cc2563dcd8a602f0460c34dacd460d877
parent2850784bda09416fc7e9d57f5baa36c9351c757c
Fix http://llvm.org/bugs/show_bug.cgi?id=3544.

The code for looking up local/private method in Sema::ActOnInstanceMessage() was not handling categories properly. Sema::ActOnClassMessage() didn't have this bug.
Created a helper with the correct logic and changed both methods to use it.

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