summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-09 20:23:04 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-09 20:23:04 +0000
commit3d8552a75d03dd1981939134a17b3918c28dc762 (patch)
treea9cd77fc44db325c0ee435c5dda28bc445ffe7b7 /clang/lib/AST
parentc13f26873fbda0ff998d89e564233987b6068b35 (diff)
downloadbcm5719-llvm-3d8552a75d03dd1981939134a17b3918c28dc762.tar.gz
bcm5719-llvm-3d8552a75d03dd1981939134a17b3918c28dc762.zip
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. llvm-svn: 60792
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/DeclObjC.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index 85b8ec14e04..1b098b5f894 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud