2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-24 12:31:25 +08:00

(__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 <richard@brainstorm.co.uk>).

From-SVN: r42561
This commit is contained in:
Ovidiu Predescu 2001-05-25 07:12:17 +00:00
parent eb8543b353
commit 3e5252057d

@ -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);