Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Feb 20, 2024
1 parent fe01333 commit 189bf5c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/mono/mono/mini/interp/interp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1493,20 +1493,16 @@ get_build_args_from_sig_info (MonoMemoryManager *mem_manager, MonoMethodSignatur
#endif
case MONO_TYPE_VALUETYPE:
case MONO_TYPE_GENERICINST:
info->ret_pinvoke_type = PINVOKE_ARG_INT;
#ifdef HOST_WASM
// This ISSTRUCT check is important, because the type could be an enum
if (MONO_TYPE_ISSTRUCT (info->ret_mono_type)) {
// The return type was already filtered previously, so if we get here
// we're returning a struct byref instead of as a scalar
info->ret_pinvoke_type = PINVOKE_ARG_WASM_VALUETYPE_RESULT;
info->ilen++;
} else {

#else
{
#endif
info->ret_pinvoke_type = PINVOKE_ARG_INT;
}
#endif
break;
case MONO_TYPE_R4:
case MONO_TYPE_R8:
Expand Down

0 comments on commit 189bf5c

Please sign in to comment.