未验证 提交 351c1b5f 编写于 作者: Z Zoltan Varga 提交者: GitHub

[mono] Emit instances for EnumComparer<T> into the mscorlib aot image, so the (#51180)

gsharedvt version is not used.

Fixes https://github.com/dotnet/runtime/issues/51113.
上级 ef2e4542
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册