From 4f161c527d9fdb782c982f4c9ba01c7aab47b798 Mon Sep 17 00:00:00 2001 From: bothner Date: Wed, 28 Jan 1998 17:07:23 +0000 Subject: [PATCH] =?utf8?q?=EF=BF=BD=20=09*=20dbxout.c=20(dbxout=5Ftype):?= =?utf8?q?=20=20For=20a=20RECORD=5FTYPE,=20check=20that=20TYPE=5FBINFO=20?= =?utf8?q?=09is=20a=20TREE=5FVEC=20before=20trying=20to=20use=20it=20for?= =?utf8?q?=20baseclasses.=20=09(Chill=20uses=20the=20same=20field=20for=20?= =?utf8?q?a=20different=20purpose.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17534 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/dbxout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.7.4