[mono][mini] Do a non-virtual call for bound delegates (#20039)mono-6.12.0.86
commit20bb4f9a6d310d4aae1529776ff45291ed676e51
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 30 Jun 2020 12:49:17 +0000 (30 08:49 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 12:49:17 +0000 (30 08:49 -0400)
tree73488d28dd20ababcd02fd94ceb79972b1c82018
parent9ca6fa646a8bb05f07d76627cf7c3b75e96c2925
[mono][mini] Do a non-virtual call for bound delegates (#20039)

When we call a delegate that was bound to a specific function, don't do a virtual call.

Fixes mono/mono#19964

Co-authored-by: lambdageek <lambdageek@users.noreply.github.com>
mono/mini/interp/interp.c
mono/mini/mini-trampolines.c
mono/tests/delegate17.cs