* cp-lang.c (cp_expr_size): Don't abort.

From-SVN: r56719
This commit is contained in:
Jason Merrill 2002-09-01 03:44:00 -04:00 committed by Jason Merrill
parent b9a3fba226
commit 218104c798
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2002-08-31 Jason Merrill <jason@redhat.com>
* cp-lang.c (cp_expr_size): Don't abort.
2002-08-27 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (warn_abi): Declare it.

View File

@ -122,14 +122,8 @@ cp_expr_size (exp)
{
if (CLASS_TYPE_P (TREE_TYPE (exp)))
{
/* The backend should not be interested in the size of an expression
of a type with both of these set; all copies of such types must go
through a constructor or assignment op. */
if (TYPE_HAS_COMPLEX_INIT_REF (TREE_TYPE (exp))
&& TYPE_HAS_COMPLEX_ASSIGN_REF (TREE_TYPE (exp)))
abort ();
/* This would be wrong for a type with virtual bases, but they are
caught by the abort above. */
/* This would be wrong for a type with virtual bases, but they should
not get here. */
return CLASSTYPE_SIZE_UNIT (TREE_TYPE (exp));
}
else