Skip to content

Commit 74c0072

Browse files
committed
Create ShadowConcreteMethod for GVMs
1 parent 036aded commit 74c0072

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/RuntimeMethodHandleNode.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ protected override DependencyList ComputeNonRelocationBasedDependencies(NodeFact
5555
MethodDesc canonMethod = _targetMethod.GetCanonMethodTarget(CanonicalFormKind.Specific);
5656
dependencies.Add(factory.GVMDependencies(canonMethod), "GVM dependencies for runtime method handle");
5757

58+
if (_targetMethod != canonMethod)
59+
{
60+
dependencies.Add(factory.ShadowConcreteMethod(_targetMethod), "GVM concrete method dependencies");
61+
}
62+
5863
// GVM analysis happens on canonical forms, but this is potentially injecting new genericness
5964
// into the system. Ensure reflection analysis can still see this.
6065
if (_targetMethod.IsAbstract)

0 commit comments

Comments
 (0)