From: Ovidiu Predescu Date: Fri, 25 May 2001 07:12:17 +0000 (+0000) Subject: (__objc_send_message_in_list): When setting a new entry in __objc_load_methods use... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e5252057de22527a07e5d2ca57bf036d1455a61;p=gcc.git (__objc_send_message_in_list): When setting a new entry in __objc_load_methods use the method name as key... (__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 ). From-SVN: r42561 --- 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);