From 598fc152608335ec98ce3d6553af67d5b68a9f52 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Wed, 28 Jan 1998 09:07:23 -0800 Subject: dbxout.c (dbxout_type): For a RECORD_TYPE... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit � * dbxout.c (dbxout_type): For a RECORD_TYPE, check that TYPE_BINFO is a TREE_VEC before trying to use it for baseclasses. (Chill uses the same field for a different purpose.) From-SVN: r17534 --- gcc/dbxout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/dbxout.c') diff --git a/gcc/dbxout.c b/gcc/dbxout.c index fcb5d86..a1d828f 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1270,7 +1270,9 @@ dbxout_type (type, full, show_arg_types) { int i, n_baseclasses = 0; - if (TYPE_BINFO (type) != 0 && TYPE_BINFO_BASETYPES (type) != 0) + if (TYPE_BINFO (type) != 0 + && TREE_CODE (TYPE_BINFO (type)) == TREE_VEC + && TYPE_BINFO_BASETYPES (type) != 0) n_baseclasses = TREE_VEC_LENGTH (TYPE_BINFO_BASETYPES (type)); /* Output a structure type. We must use the same test here as we -- cgit v1.1