Skip to content

Commit

Permalink
Fix single method compilation of canonical methods (#54923)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwrighton authored Jul 1, 2021
1 parent 345eb8c commit 87cd70c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SingleMethodCompilationModuleGroup(

public override bool ContainsMethodBody(MethodDesc method, bool unboxingStub)
{
return method == _method;
return (method == _method) || (method == _method.GetCanonMethodTarget(CanonicalFormKind.Specific));
}

public override void ApplyProfilerGuidedCompilationRestriction(ProfileDataManager profileGuidedCompileRestriction)
Expand Down

0 comments on commit 87cd70c

Please sign in to comment.