Look up the class name when registering an alias.

In the v1 ABI, this function is called with the class symbol directly,
so we need to make sure that we replace it with the upgraded symbol.
main
David Chisnall 8 years ago
parent 45d0b8e4c9
commit b7ef58bc59

@ -106,6 +106,8 @@ BOOL class_registerAlias_np(Class class, const char *alias)
return 0;
}
class = (Class)objc_getClass(class->name);
/*
* If there already exists a matching alias, determine whether we the existing
* alias is the correct one. Please note that objc_getClass() goes through the

Loading…
Cancel
Save