Merge pull request #2820 from kumpera/license-change-rebased
[mono.git] / mono / mini / mini-arm.c
index a103384a3f330a20fda4b304c2c7cbd41123a305..86d4e123919cb97908c28153de6b512f1bc5d644 100644 (file)
@@ -6784,7 +6784,7 @@ mono_arch_emit_exceptions (MonoCompile *cfg)
                        patch_info->ip.i = code - cfg->native_code;
                        ARM_BL (code, 0);
                        cfg->thunk_area += THUNK_SIZE;
-                       *(guint32*)(gpointer)code = exc_class->type_token;
+                       *(guint32*)(gpointer)code = exc_class->type_token - MONO_TOKEN_TYPE_DEF;
                        code += 4;
 #endif
                        break;