Return the forwarding IMP from get_imp if required.

main
theraven 15 years ago
parent 61a9379c9c
commit 8c966c461b

@ -308,7 +308,7 @@ BOOL __objc_responds_to(id object, SEL sel)
IMP get_imp(Class cls, SEL selector) IMP get_imp(Class cls, SEL selector)
{ {
Slot_t slot = objc_get_slot(cls, selector); Slot_t slot = objc_get_slot(cls, selector);
return NULL != slot ? slot->method : NULL; return NULL != slot ? slot->method : __objc_msg_forward2(nil, selector);
} }
/** /**

Loading…
Cancel
Save