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/CodeGen/CodeGenModule.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/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index c8fa994916..82e732163b 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -980,10 +980,12 @@ void CodeGenModule::EmitObjCPropertyImplementations(const // property. What we want to know is if the method is defined in // this implementation. if (!D->getInstanceMethod(PD->getGetterName())) - CodeGenFunction(*this).GenerateObjCGetter(PID); + CodeGenFunction(*this).GenerateObjCGetter( + const_cast<ObjCImplementationDecl *>(D), PID); if (!PD->isReadOnly() && !D->getInstanceMethod(PD->getSetterName())) - CodeGenFunction(*this).GenerateObjCSetter(PID); + CodeGenFunction(*this).GenerateObjCSetter( + const_cast<ObjCImplementationDecl *>(D), PID); } } } |