Skip to content

Commit

Permalink
Fix single method compilation for shared methods (dotnet#80864)
Browse files Browse the repository at this point in the history
Consider canonical forms of the single method to also be contained in the compilation.

This ensures the scanner scans the method (and builds generic dictionaries, etc).
  • Loading branch information
SingleAccretion authored Jan 20, 2023
1 parent 18fbf9c commit 688a9ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public override bool IsSingleFileCompilation

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

public sealed override bool ContainsMethodDictionary(MethodDesc method)
Expand Down

0 comments on commit 688a9ec

Please sign in to comment.