From e04d7506a2f2c10214a6acf992886f51bc629b6e Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Fri, 11 Feb 2022 22:41:57 -0800 Subject: [PATCH] Store the result in the return local in native-to-managed IL stubs. (#65203) * Store the result in the return local in native-to-managed IL stubs. * Unformat includes --- src/mono/mono/metadata/marshal-ilgen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mono/mono/metadata/marshal-ilgen.c b/src/mono/mono/metadata/marshal-ilgen.c index 8061e75fc778e..3c57d59e754bd 100644 --- a/src/mono/mono/metadata/marshal-ilgen.c +++ b/src/mono/mono/metadata/marshal-ilgen.c @@ -3224,6 +3224,10 @@ emit_marshal_scalar_ilgen (EmitMarshalContext *m, int argnum, MonoType *t, mono_mb_emit_stloc (mb, 3); break; + case MARSHAL_ACTION_MANAGED_CONV_RESULT: + mono_mb_emit_stloc (mb, 3); + break; + default: break; }