[jit] Use the proper function to get classes
authorJb Evain <jbevain@microsoft.com>
Thu, 20 Nov 2014 10:39:41 +0000 (11:39 +0100)
committerJb Evain <jbevain@microsoft.com>
Thu, 20 Nov 2014 11:59:40 +0000 (12:59 +0100)
commit7cbf11566fd2df7c084d03b325e4a805199cbc24
treea33ad726e3267d6c6a925e0171325cc3cf1f87ef
parent3130eb18ce23d145bc37bb4f164f7fd880ad764c
[jit] Use the proper function to get classes

For the opcodes sizeof, mkrefany and refanyval the jit
was resolving the operand tokens directly from the image.

In dynamic scenarios where the tokens are stored in the
wrapper data, this triggered TypeLoadExceptions.

This patch uses mini_get_class, as used everywhere else,
to resolve the operand tokens of those opcodes.
mono/mini/method-to-ir.c