Skip to content

Commit

Permalink
[aot] Fix the handling of r4/r8 parameter types with attributes durin…
Browse files Browse the repository at this point in the history
…g generic sharing. (#40498)

The attributes need to be ignored as with the other types, otherwise gsharedvt wrappers for signatures with
parameters like double f = default will not be found.

Fixes mono/mono#20195.

Co-authored-by: vargaz <[email protected]>
  • Loading branch information
monojenkins and vargaz committed Aug 10, 2020
1 parent fb18a11 commit 7281349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mono/mono/mini/mini-generic-sharing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,10 @@ get_wrapper_shared_type_full (MonoType *t, gboolean is_field)
#else
return m_class_get_byval_arg (mono_defaults.uint32_class);
#endif
case MONO_TYPE_R4:
return m_class_get_byval_arg (mono_defaults.single_class);
case MONO_TYPE_R8:
return m_class_get_byval_arg (mono_defaults.double_class);
case MONO_TYPE_OBJECT:
case MONO_TYPE_CLASS:
case MONO_TYPE_SZARRAY:
Expand Down

0 comments on commit 7281349

Please sign in to comment.