aboutsummaryrefslogtreecommitdiff
path: root/gdb/m32c-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m32c-tdep.c')
-rw-r--r--gdb/m32c-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c
index c2c3714..23add82 100644
--- a/gdb/m32c-tdep.c
+++ b/gdb/m32c-tdep.c
@@ -2029,7 +2029,7 @@ m32c_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
int num_prototyped_args = 0;
{
- struct type *func_type = value_type (function);
+ struct type *func_type = function->type ();
/* Dereference function pointer types. */
if (func_type->code () == TYPE_CODE_PTR)
@@ -2062,7 +2062,7 @@ m32c_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
{
struct value *arg = args[i];
const gdb_byte *arg_bits = value_contents (arg).data ();
- struct type *arg_type = value_type (arg);
+ struct type *arg_type = arg->type ();
ULONGEST arg_size = arg_type->length ();
/* Can it go in r1 or r1l (for m16c) or r0 or r0l (for m32c)? */