Backport from trunk
commita7ad353f6984d097f139f75a4bac3f82cb604442
authorMiguel de Icaza <miguel@gnome.org>
Mon, 14 Dec 2009 21:14:05 +0000 (14 21:14 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 14 Dec 2009 21:14:05 +0000 (14 21:14 -0000)
tree5ae9e09c0dcbe626054eb4225ee220f21331d56d
parent896c8ae4851b5a471e48d5e0e2b92dfabbb16f46
Backport from trunk

009-12-14  Miguel de Icaza  <miguel@novell.com>

* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
raise an invalid program exception.

For other opcodes that we might not handle use a g_warning and
raise the exception.   Beats termination.

Fixes #561724

2009-12-14  Miguel de Icaza  <miguel@novell.com>

* verify.c (mono_method_verify): The Unused opcodes produce an
InvalidProgramException on .NET

svn path=/branches/mono-2-6/mono/; revision=148418
mono/metadata/ChangeLog
mono/metadata/verify.c
mono/mini/ChangeLog
mono/mini/method-to-ir.c