diff --git a/src/CLR/Core/Interpreter.cpp b/src/CLR/Core/Interpreter.cpp index 666f7e1186..dd7b41d126 100644 --- a/src/CLR/Core/Interpreter.cpp +++ b/src/CLR/Core/Interpreter.cpp @@ -795,10 +795,12 @@ HRESULT CLR_RT_Thread::Execute_Inner() NANOCLR_CLEANUP_END(); } -HRESULT CLR_RT_Thread::Execute_DelegateInvoke( CLR_RT_StackFrame* stack ) +HRESULT CLR_RT_Thread::Execute_DelegateInvoke( CLR_RT_StackFrame& stackArg ) { NATIVE_PROFILE_CLR_CORE(); NANOCLR_HEADER(); + + CLR_RT_StackFrame* stack = &stackArg; const CLR_RECORD_METHODDEF* md; CLR_RT_HeapBlock_Delegate* dlg; @@ -860,10 +862,12 @@ HRESULT CLR_RT_Thread::Execute_DelegateInvoke( CLR_RT_StackFrame* stack ) NANOCLR_NOCLEANUP(); } -HRESULT CLR_RT_Thread::Execute_IL( CLR_RT_StackFrame* stack ) +HRESULT CLR_RT_Thread::Execute_IL( CLR_RT_StackFrame& stackArg ) { NATIVE_PROFILE_CLR_CORE(); NANOCLR_HEADER(); + + CLR_RT_StackFrame* stack = &stackArg; CLR_RT_Thread* th = stack->m_owningThread; CLR_RT_Assembly* assm = stack->m_call.m_assm; diff --git a/src/CLR/Include/nanoCLR_Runtime.h b/src/CLR/Include/nanoCLR_Runtime.h index d1be81d25b..e6ed0c8c06 100644 --- a/src/CLR/Include/nanoCLR_Runtime.h +++ b/src/CLR/Include/nanoCLR_Runtime.h @@ -2519,8 +2519,8 @@ struct CLR_RT_Thread : public CLR_RT_ObjectToEvent_Destination // EVENT HEAP - N static void ProtectFromGCCallback( void* state ); - static HRESULT Execute_DelegateInvoke( CLR_RT_StackFrame* stack ); - static HRESULT Execute_IL ( CLR_RT_StackFrame* stack ); + static HRESULT Execute_DelegateInvoke( CLR_RT_StackFrame& stack ); + static HRESULT Execute_IL ( CLR_RT_StackFrame& stack ); //--//