Fix generic delegate and MD Address method handling (#37937)
authorDavid Wrighton <davidwr@microsoft.com>
Tue, 16 Jun 2020 17:08:13 +0000 (10:08 -0700)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 17:08:13 +0000 (10:08 -0700)
commitbc65d6ba751bf9c6ca05d58215d2d7f027450821
tree12c5f38de1ecec3223547da5fd840b3062ca2da1
parent382dce3b4d205dd00f43564727d838404141e5e6
Fix generic delegate and MD Address method handling (#37937)

- Fix delegates to generic methods defined in the same compilation unit
- Fix usage of taking the address of a multidimensional array
- Pull the generics test from CoreRT into the ready to run generics test

Fixes issue #31654
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/LocalMethodImport.cs
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/PrecodeMethodImport.cs
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/SignatureBuilder.cs
src/coreclr/tests/src/readytorun/tests/generics.cs