diff options
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index 2f3949fe604..c9cfc92f4d6 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -170,6 +170,12 @@ Sema::ExprResult Sema::ActOnClassMessage(    ObjCMethodDecl *Method = ClassDecl->lookupClassMethod(Sel);    QualType returnType; +  // If we have an implementation in scope, check "private" methods. +  if (!Method) { +    if (ObjCImplementationDecl *ImpDecl =  +        ObjCImplementations[ClassDecl->getIdentifier()]) +      Method = ImpDecl->getClassMethod(Sel); +  }    // Before we give up, check if the selector is an instance method.    if (!Method)      Method = ClassDecl->lookupInstanceMethod(Sel);  | 

