Skip to content

Commit c54a9e6

Browse files
committed
Fix clang errors
1 parent b1927b4 commit c54a9e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/coreclr/interpreter/compiler.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,8 @@ int InterpCompiler::GenerateCode(CORINFO_METHOD_INFO* methodInfo)
21982198
InterpBasicBlock funclet_head = {0};
21992199
InterpBasicBlock* funclet_tail = &funclet_head;
22002200
InterpBasicBlock* body_tail = m_pEntryBB;
2201+
bool first_pass = true;
2202+
bool is_first_exception_funclet_instruction = false;
22012203

22022204
if (!CreateBasicBlocks(methodInfo))
22032205
{
@@ -2227,11 +2229,8 @@ int InterpCompiler::GenerateCode(CORINFO_METHOD_INFO* methodInfo)
22272229
linkBBlocks = true;
22282230
needsRetryEmit = false;
22292231

2230-
bool first_pass = true;
2231-
22322232
retry_emit:
22332233
emittedBBlocks = false;
2234-
bool is_first_exception_funclet_instruction = false;
22352234

22362235
while (m_ip < codeEnd)
22372236
{
@@ -3779,6 +3778,7 @@ void InterpCompiler::PrintBBCode(InterpBasicBlock *pBB)
37793778
case CATCH_ENTRY: printf("Enter catch\n"); break;
37803779
case FILTER_ENTRY: printf("Enter filter\n"); break;
37813780
case FINALLY_ENTRY: printf("Enter finally\n"); break;
3781+
default: break;
37823782
}
37833783
for (InterpInst *ins = pBB->pFirstIns; ins != NULL; ins = ins->pNext)
37843784
{
@@ -3804,6 +3804,7 @@ void InterpCompiler::PrintBBCode(InterpBasicBlock *pBB)
38043804
case FINALLY_ENTRY:
38053805
printf("Exit finally\n");
38063806
break;
3807+
default: break;
38073808
}
38083809
}
38093810
}

src/coreclr/vm/codeman.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4361,7 +4361,6 @@ TADDR InterpreterJitManager::GetFuncletStartAddress(EECodeInfo * pCodeInfo)
43614361
// before its handler funclet. So the filter end offset is equal to the start offset of the handler funclet.
43624362
if (IsFilterHandler(&ehClause) && (ehClause.FilterOffset <= relOffset) && (relOffset < ehClause.HandlerStartPC))
43634363
{
4364-
// Filter handlers are not funclets, but we need to return the start address of the filter code.
43654364
return methodBaseAddress + ehClause.FilterOffset;
43664365
}
43674366
}

0 commit comments

Comments
 (0)