Skip to content

Commit c884d43

Browse files
kglewing
authored andcommitted
Fix missing hash calc (dotnet#100876)
Co-authored-by: Larry Ewing <[email protected]>
1 parent cc63c34 commit c884d43

File tree

1 file changed

+1
-0
lines changed
  • src/mono/mono/metadata

1 file changed

+1
-0
lines changed

src/mono/mono/metadata/sre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,7 @@ reflection_setup_internal_class_internal (MonoReflectionTypeBuilderHandle ref_tb
25552555
klass->inited = 1; /* we lie to the runtime */
25562556
klass->name = mono_string_to_utf8_image (klass->image, ref_name, error);
25572557
goto_if_nok (error, leave);
2558+
klass->name_hash = mono_metadata_str_hash (klass->name);
25582559
klass->name_space = mono_string_to_utf8_image (klass->image, ref_nspace, error);
25592560
goto_if_nok (error, leave);
25602561
klass->type_token = MONO_TOKEN_TYPE_DEF | table_idx;

0 commit comments

Comments
 (0)