aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-10-22 06:35:17 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-10-22 06:35:17 +0000
commit5f7cbe4eb319c0911719f26330b7e61a3f82a7aa (patch)
treee35abcb952072bca56ac77433c8efc38721364cb /gcc/cp/expr.c
parentac22f9cb2c6f5be8f183df71fd783fed1046d309 (diff)
downloadgcc-5f7cbe4eb319c0911719f26330b7e61a3f82a7aa.zip
gcc-5f7cbe4eb319c0911719f26330b7e61a3f82a7aa.tar.gz
gcc-5f7cbe4eb319c0911719f26330b7e61a3f82a7aa.tar.bz2
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
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 6a3637b..e588efb 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -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 ();