diff options
author | Tom Tromey <tromey@gcc.gnu.org> | 2001-12-21 19:18:52 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-12-21 19:18:52 +0000 |
commit | e97b32d909ca69e874c27495cc557f94bef48a58 (patch) | |
tree | 0dfde0176cfef4e0c3e293ad70883b0599ecb578 | |
parent | 82712f8b746a5ba02aeab77deb4a437cf8604b0e (diff) | |
download | gcc-e97b32d909ca69e874c27495cc557f94bef48a58.zip gcc-e97b32d909ca69e874c27495cc557f94bef48a58.tar.gz gcc-e97b32d909ca69e874c27495cc557f94bef48a58.tar.bz2 |
reverted erroneous checking -- sorry about that
From-SVN: r48250
-rw-r--r-- | gcc/java/parse.y | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index b3f383c..7c50c97 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -5232,23 +5232,14 @@ check_inner_circular_reference (source, target) if (!basetype_vec) return NULL_TREE; - + for (i = 0; i < TREE_VEC_LENGTH (basetype_vec); i++) { - tree su; - - /* We can end up with a NULL_TREE or an incomplete type here if - we are compiling multiple files at once. It's safe to simply - ignore these cases. */ - if (TREE_VEC_ELT (basetype_vec, i) == NULL_TREE) - continue; - su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i)); - if (INCOMPLETE_TYPE_P (su)) - continue; + tree su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i)); if (inherits_from_p (su, target)) return lookup_cl (TYPE_NAME (su)); - + for (ctx = DECL_CONTEXT (TYPE_NAME (su)); ctx; ctx = DECL_CONTEXT (ctx)) { /* An enclosing context shouldn't be TARGET */ |