[jit] use helper to obtain method signature (#35344)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 24 Apr 2020 15:16:04 +0000 (11:16 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 15:16:04 +0000 (17:16 +0200)
commitc74ea5ac1efbc5c0c0c8efbabc880c1e0b87f46c
treedde65c1ea0e5a14248fea26449b5c5ce04d982c0
parentd12a038f19ea5025e8873ffd28213cf56565c463
[jit] use helper to obtain method signature (#35344)

`mini_method_get ()` doesn't guarantee that `method->signature` is set.

Fixes a problem in https://github.com/mono/mono/pull/19624

/cc @lewing

Co-authored-by: lewurm <lewurm@users.noreply.github.com>
src/mono/mono/mini/method-to-ir.c