authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 1998 17:07:23 +0000 (17:07 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 1998 17:07:23 +0000 (17:07 +0000)
* 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.)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17534 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/dbxout.c

index fcb5d86..a1d828f 100644 (file)
@@ -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