Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wrighton <davidwr@microsoft.com>2021-07-01 03:52:57 +0300
committerGitHub <noreply@github.com>2021-07-01 03:52:57 +0300
commit87cd70c4ea9f0452f52db7dc9fd5bb3564a2e9e6 (patch)
treeea3d6cf0b6b9e36e52457fe4779da1a6da426122 /src/coreclr/tools
parent345eb8c83f77c8abd65f13349c19b79f36c4bf32 (diff)
Fix single method compilation of canonical methods (#54923)
Diffstat (limited to 'src/coreclr/tools')
-rw-r--r--src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/SingleMethodCompilationModuleGroup.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/SingleMethodCompilationModuleGroup.cs b/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/SingleMethodCompilationModuleGroup.cs
index d091b8f21af..e6bd80b73b5 100644
--- a/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/SingleMethodCompilationModuleGroup.cs
+++ b/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/SingleMethodCompilationModuleGroup.cs
@@ -36,7 +36,7 @@ namespace ILCompiler
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)