]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/sh-tdep.c
gdb: remove TYPE_TARGET_TYPE
[thirdparty/binutils-gdb.git] / gdb / sh-tdep.c
index 062df860c817698e3ef20c59279360a2b3140b77..8ed1a423bfbe6c48f7623ab1fbbc72a017d21b5b 100644 (file)
@@ -93,7 +93,7 @@ sh_is_renesas_calling_convention (struct type *func_type)
       func_type = check_typedef (func_type);
 
       if (func_type->code () == TYPE_CODE_PTR)
-       func_type = check_typedef (TYPE_TARGET_TYPE (func_type));
+       func_type = check_typedef (func_type->target_type ());
 
       if (func_type->code () == TYPE_CODE_FUNC
          && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GNU_renesas_sh)