Skip to content
Merged
7 changes: 6 additions & 1 deletion src/coreclr/jit/fginline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,12 @@ class SubstitutePlaceholdersAndDevirtualizeWalker : public GenTreeVisitor<Substi
}

call->GetSingleInlineCandidateInfo()->exactContextHandle = context;
INDEBUG(call->GetSingleInlineCandidateInfo()->inlinersContext = call->gtInlineContext);

// Update inline context and DebugInfo for the new inline candidate.
InlineContext* inlineContext = call->GetSingleInlineCandidateInfo()->inlinersContext;
INDEBUG(call->gtInlineContext = inlineContext);
DebugInfo debugInfo(inlineContext, inlineContext->GetLocation());
m_curStmt->SetDebugInfo(debugInfo);

JITDUMP("New inline candidate due to late devirtualization:\n");
DISPTREE(call);
Expand Down
Loading