Skip to content

Commit

Permalink
Don't use BADCODE when inlining. (#42193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Andreenko committed Sep 14, 2020
1 parent b58eba3 commit 516a64c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/src/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16370,6 +16370,12 @@ void Compiler::impImportBlockCode(BasicBlock* block)
case CEE_MACRO_END:

default:
if (compIsForInlining())
{
compInlineResult->NoteFatal(InlineObservation::CALLEE_COMPILATION_ERROR);
return;
}

BADCODE3("unknown opcode", ": %02X", (int)opcode);
}

Expand Down

0 comments on commit 516a64c

Please sign in to comment.