Skip to content

Commit

Permalink
Fix case where has_references is not yet initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
BrzVlad committed Jul 15, 2020
1 parent 9768870 commit d4f6b0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -3069,6 +3069,8 @@ type_has_references (MonoType *type)
return TRUE;
if (MONO_TYPE_ISSTRUCT (type)) {
MonoClass *klass = mono_class_from_mono_type_internal (type);
if (!m_class_is_inited (klass))
mono_class_init_internal (klass);
return m_class_has_references (klass);
}
return FALSE;
Expand Down

0 comments on commit d4f6b0c

Please sign in to comment.