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 https://github.com/mono/mono/issues/20195.
Co-authored-by: vargaz <vargaz@users.noreply.github.com>
#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: