summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 23:26:01 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 23:26:01 +0000
commit6ad5437e3f3a0ebd3ab2aff48a305daba6bb928a (patch)
treef7365af15ce5d2fe910e1ffad8b0e21949233ed7 /gcc/java/class.c
parent71c777ee6186ba0ac4d63e255736bca43dff17fb (diff)
downloadgcc-6ad5437e3f3a0ebd3ab2aff48a305daba6bb928a.tar.gz
2004-07-09 Bryce McKinlay <mckinlay@redhat.com>
* class.c (interface_of_p): Check for null TYPE_BINFO. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index c09e2e5b3b6..90f2789c8e8 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++)
{