Skip to content
Browse files

rootclass->isa->superclass is rootclass.

  • Loading branch information...
1 parent 3067f62 commit 2191880c97adc91437f7787c999d0c71aef3ff00 @Midar committed Mar 23, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/runtime/class.m
View
7 src/runtime/class.m
@@ -216,13 +216,8 @@ + (void)initialize;
add_subclass(cls);
add_subclass(cls->isa);
- } else if ((superclass = ((struct objc_abi_class*)cls->isa)->superclass)
- != NULL) {
- if (strcmp(superclass, name))
- abort();
-
+ } else
cls->isa->superclass = cls;
- }
objc_update_dtable(cls);
objc_update_dtable(cls->isa);

0 comments on commit 2191880

Please sign in to comment.
Something went wrong with that request. Please try again.