Commit 598fc152 by Per Bothner

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
parent a88b65c2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment