Skip to content

Commit

Permalink
2009-08-07 Rodrigo Kumpera <rkumpera@novell.com>
Browse files Browse the repository at this point in the history
	* method-to-ir.c (mono_method_to_ir/CEE_CONSTRAINED_): Handle the
	case when the method is dynamic. Fixes #529238.

svn path=/trunk/mono/; revision=139583
  • Loading branch information
kumpera committed Aug 7, 2009
1 parent 0cdd60e commit ec795e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mono/mini/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-08-07 Rodrigo Kumpera <rkumpera@novell.com>

* method-to-ir.c (mono_method_to_ir/CEE_CONSTRAINED_): Handle the
case when the method is dynamic. Fixes #529238.

2009-08-06 Zoltan Varga <vargaz@gmail.com>

* mini.c (mono_jit_compile_method_inner): Throw an exception instead
Expand Down
5 changes: 4 additions & 1 deletion mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -9557,7 +9557,10 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
case CEE_CONSTRAINED_:
CHECK_OPSIZE (6);
token = read32 (ip + 2);
constrained_call = mono_class_get_full (image, token, generic_context);
if (method->wrapper_type != MONO_WRAPPER_NONE)
constrained_call = (MonoClass *)mono_method_get_wrapper_data (method, token);
else
constrained_call = mono_class_get_full (image, token, generic_context);
CHECK_TYPELOAD (constrained_call);
ip += 6;
break;
Expand Down

0 comments on commit ec795e1

Please sign in to comment.