JIT: Set method context for delegate GDV (#89499)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 27 Jul 2023 08:47:55 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 08:47:55 +0000 (10:47 +0200)
commitb9c6d688b55a53cc3e506ab57ccc3a761ea11d1b
tree48667cb6f09e7baaf1f07c771f73dff2cabde9ea
parente4cca32794ead2251e823bf85a94d5139481e78a
JIT: Set method context for delegate GDV (#89499)

Instead of passing through the IL context, update the method context to
be the exact method that were recorded in the delegate (which will
include the full instantiation).

Also do a bit of clean up.

Fix #89495
src/coreclr/jit/importercalls.cpp