* tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
From-SVN: r96655
This commit is contained in:
parent
4a76d91a23
commit
4bafe847f4
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user