Skip to content

Commit

Permalink
Fix missing hash calc (#100876)
Browse files Browse the repository at this point in the history
Co-authored-by: Larry Ewing <lewing@microsoft.com>
  • Loading branch information
kg and lewing committed Apr 11, 2024
1 parent b9cd89a commit 4e98e57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mono/mono/metadata/sre.c
Expand Up @@ -2555,6 +2555,7 @@ reflection_setup_internal_class_internal (MonoReflectionTypeBuilderHandle ref_tb
klass->inited = 1; /* we lie to the runtime */
klass->name = mono_string_to_utf8_image (klass->image, ref_name, error);
goto_if_nok (error, leave);
klass->name_hash = mono_metadata_str_hash (klass->name);
klass->name_space = mono_string_to_utf8_image (klass->image, ref_nspace, error);
goto_if_nok (error, leave);
klass->type_token = MONO_TOKEN_TYPE_DEF | table_idx;
Expand Down

0 comments on commit 4e98e57

Please sign in to comment.