diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-27 16:10:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-27 16:10:05 +0000 |
commit | c737acb8e86564becc5939d681089d1851e6be1a (patch) | |
tree | fd98affb4b15cfae12b3ac0cc8f378e0f7b7eb9e /include | |
parent | 7f9b58b171ea24a5ed14dddb43fe057abcad0ece (diff) |
Revert r139989 and r140031, which implemented the Objective-C type
system change in <rdar://problem/10109725> that allows conversion from
'self' in class methods to the root of the class's hierarchy. This
conversion rule is a hack that has non-trivial repurcussions
(particularly with overload resolution).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Sema/Sema.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index aefa031a72..92a6962a8d 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -677,9 +677,8 @@ public: GlobalMethodPool::iterator ReadMethodPool(Selector Sel); - /// Private Helper predicate to check for 'self'. Upon success, it - /// returns method declaration where 'self' is referenced. - const ObjCMethodDecl *GetMethodIfSelfExpr(Expr *RExpr); + /// Private Helper predicate to check for 'self'. + bool isSelfExpr(Expr *RExpr); public: Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, TranslationUnitKind TUKind = TU_Complete, |