Skip to content

Commit ee6de92

Browse files
authored
Ignore uninstantiated generic method (#80096)
Fixes #78955
1 parent 212fb54 commit ee6de92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public NativeLayoutMethodLdTokenVertexNode(NodeFactory factory, MethodDesc metho
238238

239239
public override IEnumerable<DependencyListEntry> GetStaticDependencies(NodeFactory context)
240240
{
241-
if (_method.IsVirtual && _method.HasInstantiation)
241+
if (_method.IsVirtual && _method.HasInstantiation && !_method.IsGenericMethodDefinition)
242242
{
243243
return GetGenericVirtualMethodDependencies(context);
244244
}

0 commit comments

Comments
 (0)