Allow IBC for non-generic methods to succeed (dotnet/coreclr#26794)
authorDavid Wrighton <davidwr@microsoft.com>
Fri, 20 Sep 2019 20:30:23 +0000 (13:30 -0700)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2019 20:30:23 +0000 (13:30 -0700)
* Allow IBC for non-generic methods to succeed

* Update src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/ReadyToRunLibraryRootProvider.cs

Co-Authored-By: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/9c5a6030c62b2d2bfb105772debee628f5a06aa0

src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/ReadyToRunLibraryRootProvider.cs

index 43a4538..f8c413c 100644 (file)
@@ -38,7 +38,7 @@ namespace ILCompiler
                             continue;
                         }
 
-                        if (method.IsMethodDefinition)
+                        if (method.IsGenericMethodDefinition)
                         {
                             continue;
                         }