From ca40ea5f7a0430422c9a3940fc939fc528f8bc86 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Wed, 23 Oct 2019 11:06:18 -0400 Subject: [PATCH] [wasm] Avoid adding an extra arg to native-to-managed wrappers. (mono/mono#17508) [wasm] Avoid adding an extra arg to native-to-managed wrappers. Fixes https://github.com/mono/mono/issues/17389. Commit migrated from https://github.com/mono/mono/commit/31b475e25a4ab5b6d8af731be9bb9e8158da31d9 --- src/mono/mono/mini/mini-llvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mono/mono/mini/mini-llvm.c b/src/mono/mono/mini/mini-llvm.c index 4eae20c..d07953b 100644 --- a/src/mono/mono/mini/mini-llvm.c +++ b/src/mono/mono/mini/mini-llvm.c @@ -3731,6 +3731,7 @@ needs_extra_arg (EmitContext *ctx, MonoMethod *method) case MONO_WRAPPER_ALLOC: case MONO_WRAPPER_CASTCLASS: case MONO_WRAPPER_WRITE_BARRIER: + case MONO_WRAPPER_NATIVE_TO_MANAGED: return FALSE; case MONO_WRAPPER_STELEMREF: if (info->subtype != WRAPPER_SUBTYPE_VIRTUAL_STELEMREF) -- 2.7.4