From 8c966c461b315d11f3078e6dfb8fdea336654824 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 12 Feb 2011 18:19:19 +0000 Subject: [PATCH] Return the forwarding IMP from get_imp if required. --- sendmsg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendmsg2.c b/sendmsg2.c index 1450e23..9cc5883 100644 --- a/sendmsg2.c +++ b/sendmsg2.c @@ -308,7 +308,7 @@ BOOL __objc_responds_to(id object, SEL sel) IMP get_imp(Class cls, SEL 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); } /**