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);
#ifdef DEBUG
// Update inline context for Debug.
call->gtInlineContext = call->GetSingleInlineCandidateInfo()->inlinersContext;
DebugInfo debugInfo(call->gtInlineContext, ILLocation(call->gtRawILOffset, false, true));
m_curStmt->SetDebugInfo(debugInfo);
#endif

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