Skip to content

Commit

Permalink
[mono] Emit instances for EnumComparer<T> into the mscorlib aot image…
Browse files Browse the repository at this point in the history
…, so the

gsharedvt version is not used.

Fixes dotnet#51113.
  • Loading branch information
vargaz committed Apr 13, 2021
1 parent 597186e commit 16f188a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mono/mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -5794,6 +5794,8 @@ add_generic_instances (MonoAotCompile *acfg)
}
enum_comparer = mono_class_load_from_name (mono_defaults.corlib, "System.Collections.Generic", "EnumEqualityComparer`1");
add_instances_of (acfg, enum_comparer, insts, ninsts, TRUE);
enum_comparer = mono_class_load_from_name (mono_defaults.corlib, "System.Collections.Generic", "EnumComparer`1");
add_instances_of (acfg, enum_comparer, insts, ninsts, TRUE);
}

/* Add instances of the array generic interfaces for primitive types */
Expand Down

0 comments on commit 16f188a

Please sign in to comment.