diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-07-09 23:26:01 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-07-10 00:26:01 +0100 |
commit | 968d62b517ed6f366328e23156a59d50972b57d0 (patch) | |
tree | f7365af15ce5d2fe910e1ffad8b0e21949233ed7 /gcc/java/class.c | |
parent | 8a2cee381065db182be6e18124193cc348b6b937 (diff) | |
download | gcc-968d62b517ed6f366328e23156a59d50972b57d0.zip gcc-968d62b517ed6f366328e23156a59d50972b57d0.tar.gz gcc-968d62b517ed6f366328e23156a59d50972b57d0.tar.bz2 |
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
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index c09e2e5..90f2789 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -533,8 +533,9 @@ interface_of_p (tree type1, tree type2) int n, i; tree basetype_vec; - if (!(basetype_vec = BINFO_BASE_BINFOS (TYPE_BINFO (type2)))) + if (! TYPE_BINFO (type2)) return 0; + basetype_vec = BINFO_BASE_BINFOS (TYPE_BINFO (type2)); n = TREE_VEC_LENGTH (basetype_vec); for (i = 0; i < n; i++) { |