diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-12-09 20:23:04 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-12-09 20:23:04 +0000 |
commit | fef30b55230064d334a669a065a1c9acdb87cdfe (patch) | |
tree | 87b4f897e5e242851b4d5108e0e8de9ec3d12432 /lib/AST/DeclObjC.cpp | |
parent | 15faa7fdfb496489dec9470aa5eb699b29ecdacc (diff) |
Support for implementation of property in the case where
the synthesis is in an implementation of s subclass of
a super class where the property has been declared.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index 85b8ec14e0..1b098b5f89 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -220,13 +220,14 @@ ObjCPropertyDecl *ObjCPropertyDecl::Create(ASTContext &C, // Objective-C Decl Implementation //===----------------------------------------------------------------------===// -void ObjCMethodDecl::createImplicitParams(ASTContext &Context) { +void ObjCMethodDecl::createImplicitParams(ASTContext &Context, + const ObjCInterfaceDecl *OID) { QualType selfTy; if (isInstance()) { // There may be no interface context due to error in declaration // of the interface (which has been reported). Recover gracefully. - if (ObjCInterfaceDecl *OID = getClassInterface()) { - selfTy = Context.getObjCInterfaceType(OID); + if (OID) { + selfTy = Context.getObjCInterfaceType(const_cast<ObjCInterfaceDecl *>(OID)); selfTy = Context.getPointerType(selfTy); } else { selfTy = Context.getObjCIdType(); |