diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-16 14:03:42 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-16 14:03:42 +0000 |
commit | 63edd4793c007093d00b73c58761ee516004e544 (patch) | |
tree | b7ad195618cdca2ff18a0a9236f8926331622f27 /libobjc/ivars.c | |
parent | 0a5dd1a5aa5e923702f39d0c25212a65455778e0 (diff) | |
download | gcc-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.c | 2 |
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); } |