From: Vlad Brezae Date: Fri, 27 Jan 2023 13:57:58 +0000 (+0200) Subject: [mono][interp] Fix type pushed by mkrefanytype (#81261) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~4394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc9aedcce35758e94cae6e0aa9af562c8bcf800;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [mono][interp] Fix type pushed by mkrefanytype (#81261) This instruction pushes a RuntimeTypeHandle. --- diff --git a/src/mono/mono/mini/interp/transform.c b/src/mono/mono/mini/interp/transform.c index 572b6d7..0fda118 100644 --- a/src/mono/mono/mini/interp/transform.c +++ b/src/mono/mono/mini/interp/transform.c @@ -7899,7 +7899,7 @@ generate_code (TransformData *td, MonoMethod *method, MonoMethodHeader *header, interp_add_ins (td, MINT_REFANYTYPE); td->sp--; interp_ins_set_sreg (td->last_ins, td->sp [0].local); - push_simple_type (td, STACK_TYPE_I); + push_type_vt (td, mono_defaults.typehandle_class, mono_class_value_size (mono_defaults.typehandle_class, NULL)); interp_ins_set_dreg (td->last_ins, td->sp [-1].local); ++td->ip; break;