Backporting https://github.com/dotnet/runtime/pull/59861 (#21532)mono-6.12.0.184
commite7c645a340afdcc1ce24abd9998c668543d9a475
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 4 Aug 2022 16:13:18 +0000 (4 18:13 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Aug 2022 16:13:18 +0000 (4 18:13 +0200)
tree385a53e01d6278f771a130585b276314ca701700
parent2a19f878dab8d2e62123e0bf29453de553f5402a
Backporting https://github.com/dotnet/runtime/pull/59861 (#21532)

Fixes https://github.com/dotnet/runtime/issues/72181

Co-authored-by: Ivan Povazan <ivan.povazan@gmail.com>
mono/mini/method-to-ir.c