summaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-25 07:12:17 +0000
committerovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-25 07:12:17 +0000
commit0f92db9e6158b1d5fd2576f269f51b57339c35c6 (patch)
treec41749037a91224766560c68d3d31f63d8d5e711 /libobjc
parent00afdaa484a48f4ccef610036b362b86016fa7a7 (diff)
downloadgcc-0f92db9e6158b1d5fd2576f269f51b57339c35c6.tar.gz
(__objc_send_message_in_list): When setting a new entry in
__objc_load_methods use the method name as key, not the method IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42561 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libobjc/init.c b/libobjc/init.c
index 954fc9240ae..d50dba026d3 100644
--- a/libobjc/init.c
+++ b/libobjc/init.c
@@ -319,7 +319,7 @@ __objc_send_message_in_list (MethodList_t method_list, Class class, SEL op)
(*mth->method_imp) ((id)class, mth->method_name);
/* Add this method into the +load hash table */
- hash_add (&__objc_load_methods, mth->method_imp, mth->method_imp);
+ hash_add (&__objc_load_methods, mth->method_name, mth->method_imp);
DEBUG_PRINTF ("sending +load in class: %s\n", class->name);