File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2568,7 +2568,7 @@ HRESULT CLR_RT_Thread::Execute_IL(CLR_RT_StackFrame &stackArg)
25682568
25692569 CLR_RT_HeapBlock *obj = &evalPos[0 ];
25702570 NanoCLRDataType dt = obj->DataType ();
2571-
2571+
25722572 // If it's a byref, it must be a struct instance on the stack/heap
25732573 bool instanceIsByRef =
25742574 (obj->DataType () == DATATYPE_BYREF) || (obj->DataType () == DATATYPE_ARRAY_BYREF);
@@ -2597,13 +2597,6 @@ HRESULT CLR_RT_Thread::Execute_IL(CLR_RT_StackFrame &stackArg)
25972597 NANOCLR_CHECK_HRESULT (CLR_RT_TypeDescriptor::ExtractObjectAndDataType (obj, dt));
25982598 }
25992599
2600- // if ((dt == DATATYPE_OBJECT || dt == DATATYPE_BYREF) && obj->Dereference() == NULL)
2601- // {
2602- // NANOCLR_SET_AND_LEAVE(CLR_E_NULL_REFERENCE);
2603- // }
2604-
2605- // NANOCLR_CHECK_HRESULT(CLR_RT_TypeDescriptor::ExtractObjectAndDataType(obj, dt));
2606-
26072600 switch (dt)
26082601 {
26092602 case DATATYPE_CLASS:
You can’t perform that action at this time.
0 commit comments