Skip to content

Commit c46122b

Browse files
committed
Fix ArraySortHelperPaired in aot ReflectionAugments
1 parent f985f97 commit c46122b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/System.Private.CoreLib/src/Internal/Reflection/Augments/ReflectionAugments.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public static EnumInfo GetEnumInfo(Type type, Func<Type, string[], object[], boo
443443

444444
// Call into IntrospectiveSort directly to avoid the Comparer<T>.Default codepath.
445445
// That codepath would bring functionality to compare everything that was ever allocated in the program.
446-
ArraySortHelperPaired<object, string, EnumUnderlyingTypeComparer>.IntrospectiveSort(unsortedValues, unsortedNames, EnumUnderlyingTypeComparer.Instance);
446+
ArraySortHelperPaired<object, string>.IntrospectiveSort<EnumUnderlyingTypeComparer>(unsortedValues, unsortedNames, EnumUnderlyingTypeComparer.Instance);
447447

448448
info = create(RuntimeAugments.GetEnumUnderlyingType(type.TypeHandle), unsortedNames, unsortedValues, isFlags);
449449

0 commit comments

Comments
 (0)