diff --git a/src/coreclr/vm/reflectioninvocation.cpp b/src/coreclr/vm/reflectioninvocation.cpp index 85d8ba33f420d4..2b08f9e85ebeb3 100644 --- a/src/coreclr/vm/reflectioninvocation.cpp +++ b/src/coreclr/vm/reflectioninvocation.cpp @@ -408,6 +408,10 @@ extern "C" void QCALLTYPE RuntimeMethodHandle_InvokeMethod( callDescrData.dwRegTypeMap = 0; #endif callDescrData.fpReturnSize = argit.GetFPReturnSize(); +#ifdef TARGET_WASM + // WASM-TODO: this is now called from the interpreter, so the arguments layout is OK. reconsider with codegen + callDescrData.nArgsSize = nStackBytes; +#endif // TARGET_WASM // This is duplicated logic from MethodDesc::GetCallTarget PCODE pTarget;