diff options
author | Richard Guenther <rguenther@suse.de> | 2005-09-07 07:20:58 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-09-07 07:20:58 +0000 |
commit | f7683d376f94305135d7bbc371463e62149a0ec2 (patch) | |
tree | 3440420d6e06330c4f52b2b9a13540af06c5e52d /gcc | |
parent | ff8f80f2021c42a8895b97eb194afa6471dfd665 (diff) | |
download | gcc-f7683d376f94305135d7bbc371463e62149a0ec2.zip gcc-f7683d376f94305135d7bbc371463e62149a0ec2.tar.gz gcc-f7683d376f94305135d7bbc371463e62149a0ec2.tar.bz2 |
cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR for EMPTY_CLASS_EXPR.
2005-09-07 Richard Guenther <rguenther@suse.de>
* cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR
for EMPTY_CLASS_EXPR.
From-SVN: r103981
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-gimplify.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f56a714..453140d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-09-07 Richard Guenther <rguenther@suse.de> + + * cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR + for EMPTY_CLASS_EXPR. + 2005-09-06 Jakub Jelinek <jakub@redhat.com> PR c/23075 diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index 5397cc8..a4d59f5 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -485,8 +485,8 @@ cp_gimplify_expr (tree *expr_p, tree *pre_p, tree *post_p) break; case EMPTY_CLASS_EXPR: - /* We create an INTEGER_CST with RECORD_TYPE and value zero. */ - *expr_p = build_int_cst (TREE_TYPE (*expr_p), 0); + /* We create an empty CONSTRUCTOR with RECORD_TYPE. */ + *expr_p = build_constructor (TREE_TYPE (*expr_p), NULL); ret = GS_OK; break; |