ada-typeprint.c::ada_print_type: Remove redundant call to ada_check_typedef
authorJoel Brobecker <brobecker@adacore.com>
Fri, 23 Oct 2020 10:15:15 +0000 (14:15 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 23 Oct 2020 10:15:15 +0000 (14:15 +0400)
This commit removes a call to ada_check_typedef which has already
been done a few lines earlier in the same function, so the second one
is superfluous.

gdb/ChangeLog:

        * ada-typeprint.c (ada_print_type): Remove superfluous second call
        to ada_check_typedef.

gdb/ChangeLog
gdb/ada-typeprint.c

index 398d9a7fd1052ef794d8b21b2fcef69472641acc..871a31a6b8a54ee508423c96f1bae89c053f38ff 100644 (file)
@@ -1,3 +1,8 @@
+2020-10-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-typeprint.c (ada_print_type): Remove superfluous second call
+       to ada_check_typedef.
+
 2020-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * f-exp.y (f_parse): Rename to...
index 8ee620c36ad7cc0e0eee9f198469e23b6cf0d738..13037c049c1d10846eb57708ef5a3b0b5c44fa90 100644 (file)
@@ -967,9 +967,6 @@ ada_print_type (struct type *type0, const char *varstring,
       return;
     }
 
-  if (show > 0)
-    type = ada_check_typedef (type);
-
   if (is_var_decl && type->code () != TYPE_CODE_FUNC)
     fprintf_filtered (stream, "%.*s: ",
                      ada_name_prefix_len (varstring), varstring);