Skip to content
Prev Previous commit
Next Next commit
use member access, not type punning
  • Loading branch information
lambdageek authored and github-actions committed Aug 24, 2022
commit 980767f5085325af7a94f286823dcac4114e0374
3 changes: 2 additions & 1 deletion src/mono/mono/metadata/class-setup-vtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,8 @@ mono_class_setup_vtable_full (MonoClass *klass, GList *in_setup)
context = mono_class_get_context (klass);
type_token = mono_class_get_generic_class (klass)->container_class->type_token;
} else {
context = (MonoGenericContext *) mono_class_try_get_generic_container (klass); //FIXME is this a case of a try?
MonoGenericContainer *container = mono_class_try_get_generic_container (klass); //FIXME is this a case of a try?
context = container ? &container->context : NULL;
type_token = klass->type_token;
}

Expand Down