mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 23:37:22 +08:00
cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
* cp-tree.def (EMPTY_CLASS_EXPR): New tree node. * call.c (build_call): Use EMPTY_CLASS_EXPR instead of RTL_EXPR. * expr.c (cplus_expand_expr): Expand it. * ir.texi: Document EMPTY_CLASS_EXPR. From-SVN: r30128
This commit is contained in:
parent
ac22f9cb2c
commit
5f7cbe4eb3
@ -234,6 +234,10 @@ cplus_expand_expr (exp, target, tmode, modifier)
|
||||
expand_internal_throw ();
|
||||
return NULL;
|
||||
|
||||
case EMPTY_CLASS_EXPR:
|
||||
/* We don't need to generate any code for an empty class. */
|
||||
return const0_rtx;
|
||||
|
||||
case STMT_EXPR:
|
||||
{
|
||||
tree rtl_expr = begin_stmt_expr ();
|
||||
|
Loading…
Reference in New Issue
Block a user