[obv] (make_pointer_type): Remove redundant setting of TYPE_POINTER_TYPE (type)
dje@google.com
dje@google.com
Tue Aug 14 19:06:00 GMT 2012
Hi.
checked in as obvious.
TYPE_POINTER_TYPE (type) is unconditionally set a few lines up.
2012-08-14 Doug Evans <dje@google.com>
* gdbtypes.c (make_pointer_type): Remove redundant setting of
TYPE_POINTER_TYPE (type).
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.235
diff -u -p -r1.235 gdbtypes.c
--- gdbtypes.c 2 Aug 2012 09:36:39 -0000 1.235
+++ gdbtypes.c 14 Aug 2012 18:36:28 -0000
@@ -324,9 +324,6 @@ make_pointer_type (struct type *type, st
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)
More information about the Gdb-patches
mailing list