diff options
author | Richard Guenther <rguenth@gcc.gnu.org> | 2005-06-07 10:10:22 +0000 |
---|---|---|
committer | Richard Guenther <rguenth@gcc.gnu.org> | 2005-06-07 10:10:22 +0000 |
commit | 23f79d1e2281a5574bb1751aba75056d9a722abd (patch) | |
tree | 6ebbf32b5f064f2beb8dedf553879d6e4cb9f803 /gcc/gimplify.c | |
parent | 573dad33be1127ec3b1192f49b91c819414a0807 (diff) |
2005-06-07 Richard Guenther <rguenth@gcc.gnu.org>
* c-typeck.c (c_finish_if_stmt): Use void_type_node as type
for COND_EXPR.
* gimplify.c (gimplify_cond_expr): No need to fix up the
type of COND_EXPRs.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@100705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 6834e1a3c5f..bcc9ba262f9 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -2124,12 +2124,10 @@ gimplify_cond_expr (tree *expr_p, tree *pre_p, tree *post_p, tree target, enum gimplify_status ret; type = TREE_TYPE (expr); - if (!type) - TREE_TYPE (expr) = void_type_node; /* If this COND_EXPR has a value, copy the values into a temporary within the arms. */ - else if (! VOID_TYPE_P (type)) + if (! VOID_TYPE_P (type)) { tree result; |