summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-08-14 19:03:46 +0000
committerDoug Evans <dje@google.com>2012-08-14 19:03:46 +0000
commit0435e68c5179b43a4bced017a8f6bd004f014133 (patch)
treefeef8e5481754396e433d9b8d34aa588ef180825 /gdb/gdbtypes.c
parentd89b1f27abd6d722c2d4b3096dd50945a0c84357 (diff)
downloadgdb-0435e68c5179b43a4bced017a8f6bd004f014133.tar.gz
* gdbtypes.c (make_pointer_type): Remove redundant setting of
TYPE_POINTER_TYPE (type).
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 0ea4df14982..b4d8a8c5966 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -324,9 +324,6 @@ make_pointer_type (struct type *type, struct type **typeptr)
gdbarch_address_to_pointer. */
TYPE_UNSIGNED (ntype) = 1;
- if (!TYPE_POINTER_TYPE (type)) /* Remember it, if don't have one. */
- TYPE_POINTER_TYPE (type) = ntype;
-
/* Update the length of all the other variants of this type. */
chain = TYPE_CHAIN (ntype);
while (chain != ntype)