Commit 4bafe847 by Jan Hubicka Committed by Jan Hubicka

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

From-SVN: r96655
parent 4a76d91a
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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment