This change simplifies the conditon and also makes it more robust. There
are situation where the IL code pointer can differ for the same method.
assert(inlineContext->GetCode() != nullptr);
depth++;
- if ((inlineContext->GetCode() == candidateCode) && (inlineContext->GetCallee() == inlineInfo->fncHandle) &&
+ if ((inlineContext->GetCallee() == inlineInfo->fncHandle) &&
(inlineContext->GetRuntimeContext() == inlineInfo->inlineCandidateInfo->exactContextHnd))
{
// This is a recursive inline