summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-18 10:09:51 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-18 10:09:51 +0000
commit5b076c754173e6787fcfa7968979d866d517dc4f (patch)
tree0cc0851add458bd941ee4777eb218fe27b847536 /gcc/tree-cfg.c
parent5830087fdfb01e798d030e458afddbdec3c55550 (diff)
downloadgcc-5b076c754173e6787fcfa7968979d866d517dc4f.tar.gz
* tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96655 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 32dc2bc579c..b1ff8e6d97b 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -457,9 +457,9 @@ fold_cond_expr_cond (void)
{
tree cond = fold (COND_EXPR_COND (stmt));
if (integer_zerop (cond))
- COND_EXPR_COND (stmt) = integer_zero_node;
+ COND_EXPR_COND (stmt) = boolean_false_node;
else if (integer_onep (cond))
- COND_EXPR_COND (stmt) = integer_one_node;
+ COND_EXPR_COND (stmt) = boolean_true_node;
}
}
}