From: Per Bothner Date: Wed, 28 Jan 1998 17:07:23 +0000 (-0800) Subject: dbxout.c (dbxout_type): For a RECORD_TYPE... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=598fc152608335ec98ce3d6553af67d5b68a9f52;p=gcc.git dbxout.c (dbxout_type): For a RECORD_TYPE... � * 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 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index fcb5d86650e..a1d828f9f23 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