Skip to content

Commit

Permalink
Store the result in the return local in native-to-managed IL stubs. (#…
Browse files Browse the repository at this point in the history
…65203)

* Store the result in the return local in native-to-managed IL stubs.

* Unformat includes
  • Loading branch information
jkoritzinsky authored Feb 12, 2022
1 parent ba31e37 commit e04d750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mono/mono/metadata/marshal-ilgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e04d750

Please sign in to comment.