Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Urban <bernhard.urban@xamarin.com>2017-02-27 19:55:53 +0300
committerBernhard Urban <bernhard.urban@xamarin.com>2017-03-01 00:59:28 +0300
commit959d68eacc859a54fcc633bb7b81c6a37a3faf62 (patch)
tree8ce2a73132e8b43234835403fcf1143bca9515e5
parentbf71c7a73cfda89f151623acaee490d8043137ec (diff)
[object/interpreter] add trap for future pitfalls
-rw-r--r--mono/metadata/object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mono/metadata/object.c b/mono/metadata/object.c
index 96d52815caf..b3ce33d1264 100644
--- a/mono/metadata/object.c
+++ b/mono/metadata/object.c
@@ -7923,6 +7923,9 @@ mono_delegate_ctor_with_method (MonoObject *this_obj, MonoObject *target, gpoint
if (target && mono_object_is_transparent_proxy (target)) {
g_assert (method);
method = mono_marshal_get_remoting_invoke (method);
+#ifdef ENABLE_INTERPRETER
+ g_error ("need RuntimeMethod in method_ptr when using interpreter");
+#endif
delegate->method_ptr = mono_compile_method_checked (method, error);
return_val_if_nok (error, FALSE);
MONO_OBJECT_SETREF (delegate, target, target);