aboutsummaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorOvidiu Predescu <ovidiu@gcc.gnu.org>2001-05-25 07:15:18 +0000
committerOvidiu Predescu <ovidiu@gcc.gnu.org>2001-05-25 07:15:18 +0000
commit99dd199cfb0436ee610df356d6303e90f97f6b73 (patch)
treea09d5e173599c87e0f8da0c2ba1a0a4ea49a54b7 /libobjc
parent1d520761f12121783fa5d478de3ddc0572970809 (diff)
downloadgcc-99dd199cfb0436ee610df356d6303e90f97f6b73.zip
gcc-99dd199cfb0436ee610df356d6303e90f97f6b73.tar.gz
gcc-99dd199cfb0436ee610df356d6303e90f97f6b73.tar.bz2
(__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: r42563
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 954fc92..d50dba0 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);