Commit dec2f881 by Kazu Hirata Committed by Kazu Hirata

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
parent 3b2db49f
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> 2005-12-26 Mark Mitchell <mark@codesourcery.com>
PR c++/23171, c++/23172, c++/25417. PR c++/23171, c++/23172, c++/25417.
......
...@@ -1421,7 +1421,7 @@ extract_range_from_binary_expr (value_range_t *vr, tree expr) ...@@ -1421,7 +1421,7 @@ extract_range_from_binary_expr (value_range_t *vr, tree expr)
&& tree_expr_nonnegative_p (vr0.max) && tree_expr_nonnegative_p (vr0.max)
&& TREE_CODE (vr0.max) == INTEGER_CST) && 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; max = vr0.max;
} }
else if (vr1.type == VR_RANGE else if (vr1.type == VR_RANGE
...@@ -1430,7 +1430,7 @@ extract_range_from_binary_expr (value_range_t *vr, tree expr) ...@@ -1430,7 +1430,7 @@ extract_range_from_binary_expr (value_range_t *vr, tree expr)
&& TREE_CODE (vr1.max) == INTEGER_CST) && TREE_CODE (vr1.max) == INTEGER_CST)
{ {
type = VR_RANGE; type = VR_RANGE;
min = fold_convert (TREE_TYPE (expr), integer_zero_node); min = build_int_cst (TREE_TYPE (expr), 0);
max = vr1.max; max = vr1.max;
} }
else else
......
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