Skip to content

Commit

Permalink
[mono][wasm] Fix boxing of gsharedvt nullables. (dotnet#75288)
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Sep 8, 2022
1 parent 239f550 commit bc183b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mono/mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -3403,9 +3403,14 @@ mini_emit_box (MonoCompile *cfg, MonoInst *val, MonoClass *klass, int context_us

if (context_used) {
if (cfg->llvm_only) {
MonoInst *addr;
MonoMethodSignature *sig = mono_method_signature_internal (method);
MonoInst *addr = emit_get_rgctx_method (cfg, context_used, method,
MONO_RGCTX_INFO_METHOD_FTNDESC);
if (mini_is_gsharedvt_klass (klass))
addr = mini_emit_get_gsharedvt_info_klass (cfg, klass,
MONO_RGCTX_INFO_NULLABLE_CLASS_BOX);
else
addr = emit_get_rgctx_method (cfg, context_used, method,
MONO_RGCTX_INFO_METHOD_FTNDESC);
cfg->interp_in_signatures = g_slist_prepend_mempool (cfg->mempool, cfg->interp_in_signatures, sig);
return mini_emit_llvmonly_calli (cfg, sig, &val, addr);
} else {
Expand Down

0 comments on commit bc183b8

Please sign in to comment.