Fixed build with clang.

main
theraven 16 years ago
parent baed61c3e6
commit cbf41a1fec

@ -738,6 +738,8 @@ __objc_compute_ivar_offsets (Class class)
* functionality, provide an alternative @interface with all variables * functionality, provide an alternative @interface with all variables
* declared @public. * declared @public.
*/ */
if (class->ivars)
{
for (i = 0 ; i < class->ivars->ivar_count ; i++) for (i = 0 ; i < class->ivars->ivar_count ; i++)
{ {
struct objc_ivar *ivar = &class->ivars->ivar_list[i]; struct objc_ivar *ivar = &class->ivars->ivar_list[i];
@ -751,6 +753,7 @@ __objc_compute_ivar_offsets (Class class)
} }
} }
} }
}
else else
{ {
if (class->ivars != 0) if (class->ivars != 0)

@ -85,7 +85,7 @@ Method_t search_for_method_in_list (MethodList_t list, SEL op);
id nil_method (id, SEL); id nil_method (id, SEL);
/* Given a selector, return the proper forwarding implementation. */ /* Given a selector, return the proper forwarding implementation. */
inline inline static
IMP IMP
__objc_get_forward_imp (id rcv, SEL sel) __objc_get_forward_imp (id rcv, SEL sel)
{ {

Loading…
Cancel
Save