Skip to content

Commit aa84a32

Browse files
committed
Merge pull request #93 from nanoframework/nfbot/clang-format-fix/a680d71d-e808-4447-aa01-cfb322a45f6c
Code style fixes for nanoframework/nf-interpreter PR#3186
2 parents ae09a3a + 658a0c7 commit aa84a32

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/CLR/Core/Interpreter.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)