summaryrefslogtreecommitdiff
path: root/libobjc/ivars.c
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-16 14:03:42 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-16 14:03:42 +0000
commit63edd4793c007093d00b73c58761ee516004e544 (patch)
treeb7ad195618cdca2ff18a0a9236f8926331622f27 /libobjc/ivars.c
parent0a5dd1a5aa5e923702f39d0c25212a65455778e0 (diff)
downloadgcc-63edd4793c007093d00b73c58761ee516004e544.tar.gz
2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com>
* class.c (class_getSuperclass): Call __objc_resolve_class_links if the class is not resolved yet. * ivars.c (class_getInstanceVariable): Use class_getSuperclass. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165542 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/ivars.c')
-rw-r--r--libobjc/ivars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libobjc/ivars.c b/libobjc/ivars.c
index 827243a6c71..9e9a84b068e 100644
--- a/libobjc/ivars.c
+++ b/libobjc/ivars.c
@@ -53,7 +53,7 @@ class_getInstanceVariable (Class class_, const char *name)
}
}
}
- class_ = class_->super_class;
+ class_ = class_getSuperclass (class_);
}
objc_mutex_unlock (__objc_runtime_mutex);
}