* tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.

From-SVN: r96655
This commit is contained in:
Jan Hubicka 2005-03-18 11:09:51 +01:00 committed by Jan Hubicka
parent 4a76d91a23
commit 4bafe847f4
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2005-03-18 Jan Hubicka <jh@suse.cz>
* tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
* cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
function body should be released; do not proactively release function
bodies in non-unit-at-a-time mode.

View File

@ -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;
}
}
}