tree-vrp.c (extract_range_from_binary_expr): Use build_int_cst instead of fold_convert.

* tree-vrp.c (extract_range_from_binary_expr): Use
	build_int_cst instead of fold_convert.

From-SVN: r109078
This commit is contained in:
Kazu Hirata 2005-12-27 08:16:12 +00:00 committed by Kazu Hirata
parent 3b2db49f36
commit dec2f8810b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-12-27 Kazu Hirata <kazu@codesourcery.com>
* tree-vrp.c (extract_range_from_binary_expr): Use
build_int_cst instead of fold_convert.
2005-12-26 Mark Mitchell <mark@codesourcery.com>
PR c++/23171, c++/23172, c++/25417.

View File

@ -1421,7 +1421,7 @@ extract_range_from_binary_expr (value_range_t *vr, tree expr)
&& tree_expr_nonnegative_p (vr0.max)
&& TREE_CODE (vr0.max) == INTEGER_CST)
{
min = fold_convert (TREE_TYPE (expr), integer_zero_node);
min = build_int_cst (TREE_TYPE (expr), 0);
max = vr0.max;
}
else if (vr1.type == VR_RANGE
@ -1430,7 +1430,7 @@ extract_range_from_binary_expr (value_range_t *vr, tree expr)
&& TREE_CODE (vr1.max) == INTEGER_CST)
{
type = VR_RANGE;
min = fold_convert (TREE_TYPE (expr), integer_zero_node);
min = build_int_cst (TREE_TYPE (expr), 0);
max = vr1.max;
}
else