Skip to content

Commit 189bf5c

Browse files
committed
Address PR feedback
1 parent fe01333 commit 189bf5c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/mono/mono/mini/interp/interp.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,20 +1493,16 @@ get_build_args_from_sig_info (MonoMemoryManager *mem_manager, MonoMethodSignatur
14931493
#endif
14941494
case MONO_TYPE_VALUETYPE:
14951495
case MONO_TYPE_GENERICINST:
1496+
info->ret_pinvoke_type = PINVOKE_ARG_INT;
14961497
#ifdef HOST_WASM
14971498
// This ISSTRUCT check is important, because the type could be an enum
14981499
if (MONO_TYPE_ISSTRUCT (info->ret_mono_type)) {
14991500
// The return type was already filtered previously, so if we get here
15001501
// we're returning a struct byref instead of as a scalar
15011502
info->ret_pinvoke_type = PINVOKE_ARG_WASM_VALUETYPE_RESULT;
15021503
info->ilen++;
1503-
} else {
1504-
1505-
#else
1506-
{
1507-
#endif
1508-
info->ret_pinvoke_type = PINVOKE_ARG_INT;
15091504
}
1505+
#endif
15101506
break;
15111507
case MONO_TYPE_R4:
15121508
case MONO_TYPE_R8:

0 commit comments

Comments
 (0)