diff options
Diffstat (limited to 'gdb/rx-tdep.c')
-rw-r--r-- | gdb/rx-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c index c7e7c3f..62a9ac4 100644 --- a/gdb/rx-tdep.c +++ b/gdb/rx-tdep.c @@ -672,7 +672,7 @@ rx_push_dummy_call (struct gdbarch *gdbarch, struct value *function, /* Dereference function pointer types. */ while (func_type->code () == TYPE_CODE_PTR) - func_type = TYPE_TARGET_TYPE (func_type); + func_type = func_type->target_type (); /* The end result had better be a function or a method. */ gdb_assert (func_type->code () == TYPE_CODE_FUNC @@ -707,7 +707,7 @@ rx_push_dummy_call (struct gdbarch *gdbarch, struct value *function, if (return_method == return_method_struct) { - struct type *return_type = TYPE_TARGET_TYPE (func_type); + struct type *return_type = func_type->target_type (); gdb_assert (return_type->code () == TYPE_CODE_STRUCT || func_type->code () == TYPE_CODE_UNION); |