aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1998-02-28 15:24:10 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1998-02-28 15:24:10 -0500
commit71834e9ba2a6b4cb57f5ac5cf102fcae843b4cb7 (patch)
tree1561a73642b98d6d0ebf2413c7248ab91638cc54
parentf8aea64e70e771cbdc57085ad36b5bfeb0420a6f (diff)
(sdbout_field_types): Use POINTER_TYPE_P.
From-SVN: r18310
-rw-r--r--gcc/sdbout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 4fd5f941f95..3a5d7a4ac1b 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -1065,8 +1065,9 @@ sdbout_field_types (type)
tree type;
{
tree tail;
+
for (tail = TYPE_FIELDS (type); tail; tail = TREE_CHAIN (tail))
- if (TREE_CODE (TREE_TYPE (tail)) == POINTER_TYPE)
+ if (POINTER_TYPE_P (TREE_TYPE (tail)))
sdbout_one_type (TREE_TYPE (TREE_TYPE (tail)));
else
sdbout_one_type (TREE_TYPE (tail));