* cp-lang.c (cp_expr_size): Don't abort.
From-SVN: r56719
This commit is contained in:
parent
b9a3fba226
commit
218104c798
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue