Add missing coreclr check on JIT optimization
commitabd7ddbd9874b4f248b2b6ed7e125495dc0a0365
authorSebastien Pouliot <sebastien@ximian.com>
Mon, 21 Mar 2011 13:59:52 +0000 (21 09:59 -0400)
committerSebastien Pouliot <sebastien@ximian.com>
Mon, 21 Mar 2011 13:59:52 +0000 (21 09:59 -0400)
tree6eb733d62fd9033bd8452609a42e0ddc23253d84
parent6669a2216307207922ce0051252bfce2556a584c
Add missing coreclr check on JIT optimization

* The JIT optimize the case where a LDFTN is followed by a NEWOBJ but
was missing the coreclr check (to avoid creating [SecurityCritical]
types, i.e. delegates).

Note that this does not affect moonlight since only three such user
visible types are affected and the API to use them is also marked with
[SecurityCritical]:
System.ResolveEventHandler
System.Threading.IOCompletionCallback
System.UnhandledExceptionEventHandler
mono/mini/method-to-ir.c