a = stack_pop (ctx);
if (opcode == CEE_CGT_UN) {
- // ECMA-335:
- // cgt.un is allowed and verifiable on ObjectRefs (O). This is commonly used when
- // comparing an ObjectRef with null
- if (stack_slot_get_type (a) == TYPE_COMPLEX && a->type->type == MONO_TYPE_OBJECT &&
- stack_slot_get_type (b) == TYPE_COMPLEX && b->type->type == MONO_TYPE_OBJECT) {
-
+ if (stack_slot_get_type (a) == TYPE_COMPLEX && stack_slot_get_type (b) == TYPE_COMPLEX) {
stack_push_val (ctx, TYPE_I4, &mono_defaults.int32_class->byval_arg);
return;
}