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

call->GetSingleInlineCandidateInfo()->exactContextHandle = context;
#ifdef DEBUG
// Update inline context for Debug.
call->gtInlineContext = call->GetSingleInlineCandidateInfo()->inlinersContext;
DebugInfo debugInfo(call->gtInlineContext, ILLocation(call->gtRawILOffset, false, true));

// 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);
#endif

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