@@ -13405,31 +13405,6 @@ MATH_MAYBE_CALL_NO_OVF: ovfl = false;
13405
13405
#pragma warning(pop)
13406
13406
#endif
13407
13407
13408
- void Compiler::impAbortInline(bool abortThisInlineOnly, bool contextDependent,
13409
- const char *reason)
13410
- {
13411
- JITDUMP("\n\nInline expansion aborted due to opcode [%02u] OP_%s in method %s\n",
13412
- impCurOpcOffs, impCurOpcName, info.compFullName);
13413
-
13414
- if (abortThisInlineOnly)
13415
- {
13416
- JITDUMP("(aborted for this callsite only)\n");
13417
- compInlineResult->setFailure(reason);
13418
- }
13419
- else
13420
- {
13421
- compInlineResult->setNever(reason);
13422
- }
13423
-
13424
- if (contextDependent)
13425
- {
13426
- JITDUMP("Context dependent inline rejection for method %s\n", info.compFullName);
13427
- }
13428
-
13429
- assert(compIsForInlining());
13430
- assert(impInlineInfo->fncHandle == info.compMethodHnd);
13431
- }
13432
-
13433
13408
// Push a local/argument treeon the operand stack
13434
13409
void Compiler::impPushVar(GenTree * op, typeInfo tiRetVal)
13435
13410
{
@@ -13471,7 +13446,7 @@ void Compiler::impLoadArg(unsigned ilArgNum, IL_OFFSET offset)
13471
13446
{
13472
13447
if (ilArgNum >= info.compArgsCount)
13473
13448
{
13474
- impAbortInline(false, false, "bad arg num ");
13449
+ compInlineResult->setNever( "bad argument number ");
13475
13450
return;
13476
13451
}
13477
13452
@@ -13513,7 +13488,7 @@ void Compiler::impLoadLoc(unsigned ilLclNum, IL_OFFSET offset)
13513
13488
{
13514
13489
if (ilLclNum >= info.compMethodInfo->locals.numArgs)
13515
13490
{
13516
- impAbortInline(false, false, "bad loc num ");
13491
+ compInlineResult->setNever( "bad local number ");
13517
13492
return;
13518
13493
}
13519
13494
@@ -13699,7 +13674,7 @@ bool Compiler::impReturnInstruction(BasicBlock *block, int prefixFlags, OPCODE &
13699
13674
13700
13675
if (returnType != originalCallType)
13701
13676
{
13702
- impAbortInline(true, false, "Return types are not matching. ");
13677
+ compInlineResult->setFailure( "Return type mismatch ");
13703
13678
return false;
13704
13679
}
13705
13680
0 commit comments