From 516a64cd412c520fbd2dbb08273d404cb251cb83 Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Mon, 14 Sep 2020 12:59:00 -0700 Subject: [PATCH] Don't use BADCODE when inlining. (#42193) --- src/coreclr/src/jit/importer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/coreclr/src/jit/importer.cpp b/src/coreclr/src/jit/importer.cpp index 0c0b67e..9288407 100644 --- a/src/coreclr/src/jit/importer.cpp +++ b/src/coreclr/src/jit/importer.cpp @@ -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); } -- 2.7.4