[runtime] Use mono_object_isinst_checked for ppc and ia64
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 29 Mar 2016 13:02:20 +0000 (15:02 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 29 Mar 2016 13:02:59 +0000 (15:02 +0200)
The usages were only partially changed in the move from mono_object_isinst in fbe121079035450251d4169b71b64196c9f5657c and caused build errors.

mono/mini/exceptions-ia64.c
mono/mini/exceptions-ppc.c

index 2f5324c69e7b75453b360a70c0e4a2d2305552f8..adae20f2b5f2fb83a57d67b3b08b30a77f007483 100644 (file)
@@ -242,7 +242,7 @@ throw_exception (MonoObject *exc, guint64 rethrow)
        unw_word_t ip, sp;
        int res;
 
-       if (mono_object_isinst (exc, mono_defaults.exception_class, &error)) {
+       if (mono_object_isinst_checked (exc, mono_defaults.exception_class, &error)) {
                MonoException *mono_ex = (MonoException*)exc;
                if (!rethrow) {
                        mono_ex->stack_trace = NULL;
index df828692ac3289c5ec99ffc57fe4c9255c67cede..80a579b05eb87e539e3b1c344edf636991b4c667 100644 (file)
@@ -332,7 +332,7 @@ mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp,
        memcpy (&ctx.regs, int_regs, sizeof (mgreg_t) * MONO_SAVED_GREGS);
        memcpy (&ctx.fregs, fp_regs, sizeof (double) * MONO_SAVED_FREGS);
 
-       if (mono_object_isinst (exc, mono_defaults.exception_class, &error)) {
+       if (mono_object_isinst_checked (exc, mono_defaults.exception_class, &error)) {
                MonoException *mono_ex = (MonoException*)exc;
                if (!rethrow) {
                        mono_ex->stack_trace = NULL;