gdb: defer commit resume until all available events are consumed
[deliverable/binutils-gdb.git] / gdb / s12z-tdep.c
index 4d2febadc9b6d62bedb3b7196fa184dd1a68e975..607652c61a32ade9c3c4591481b91cfda49a04da 100644 (file)
@@ -614,9 +614,9 @@ s12z_return_value (struct gdbarch *gdbarch, struct value *function,
                    struct type *type, struct regcache *regcache,
                    gdb_byte *readbuf, const gdb_byte *writebuf)
 {
-  if (TYPE_CODE (type) == TYPE_CODE_STRUCT
-      || TYPE_CODE (type) == TYPE_CODE_UNION
-      || TYPE_CODE (type) == TYPE_CODE_ARRAY
+  if (type->code () == TYPE_CODE_STRUCT
+      || type->code () == TYPE_CODE_UNION
+      || type->code () == TYPE_CODE_ARRAY
       || TYPE_LENGTH (type) > 4)
     return RETURN_VALUE_STRUCT_CONVENTION;
 
This page took 0.025994 seconds and 4 git commands to generate.