class.c (interface_of_p): Check for null TYPE_BINFO.
2004-07-09 Bryce McKinlay <mckinlay@redhat.com> * class.c (interface_of_p): Check for null TYPE_BINFO. From-SVN: r84418
This commit is contained in:
parent
8a2cee3810
commit
968d62b517
@ -1,3 +1,7 @@
|
|||||||
|
2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
|
||||||
|
|
||||||
|
* class.c (interface_of_p): Check for null TYPE_BINFO.
|
||||||
|
|
||||||
2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
|
2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* class.c (make_class): Do not create binfo here.
|
* class.c (make_class): Do not create binfo here.
|
||||||
|
@ -533,8 +533,9 @@ interface_of_p (tree type1, tree type2)
|
|||||||
int n, i;
|
int n, i;
|
||||||
tree basetype_vec;
|
tree basetype_vec;
|
||||||
|
|
||||||
if (!(basetype_vec = BINFO_BASE_BINFOS (TYPE_BINFO (type2))))
|
if (! TYPE_BINFO (type2))
|
||||||
return 0;
|
return 0;
|
||||||
|
basetype_vec = BINFO_BASE_BINFOS (TYPE_BINFO (type2));
|
||||||
n = TREE_VEC_LENGTH (basetype_vec);
|
n = TREE_VEC_LENGTH (basetype_vec);
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user