mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-05 18:00:29 +08:00
reverted erroneous checking -- sorry about that
From-SVN: r48250
This commit is contained in:
parent
82712f8b74
commit
e97b32d909
@ -5232,23 +5232,14 @@ check_inner_circular_reference (source, target)
|
|||||||
|
|
||||||
if (!basetype_vec)
|
if (!basetype_vec)
|
||||||
return NULL_TREE;
|
return NULL_TREE;
|
||||||
|
|
||||||
for (i = 0; i < TREE_VEC_LENGTH (basetype_vec); i++)
|
for (i = 0; i < TREE_VEC_LENGTH (basetype_vec); i++)
|
||||||
{
|
{
|
||||||
tree su;
|
tree su = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
|
||||||
|
|
||||||
/* 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;
|
|
||||||
|
|
||||||
if (inherits_from_p (su, target))
|
if (inherits_from_p (su, target))
|
||||||
return lookup_cl (TYPE_NAME (su));
|
return lookup_cl (TYPE_NAME (su));
|
||||||
|
|
||||||
for (ctx = DECL_CONTEXT (TYPE_NAME (su)); ctx; ctx = DECL_CONTEXT (ctx))
|
for (ctx = DECL_CONTEXT (TYPE_NAME (su)); ctx; ctx = DECL_CONTEXT (ctx))
|
||||||
{
|
{
|
||||||
/* An enclosing context shouldn't be TARGET */
|
/* An enclosing context shouldn't be TARGET */
|
||||||
|
Loading…
Reference in New Issue
Block a user