Commit 184afc23 by Kazu Hirata Committed by Kazu Hirata

tree-vrp.c (extract_range_from_assert): Replace fold (build (...)) with fold_build2.

	* tree-vrp.c (extract_range_from_assert): Replace
	fold (build (...)) with fold_build2.

From-SVN: r101554
parent f726bf47
2005-07-03 Kazu Hirata <kazu@codesourcery.com>
* tree-vrp.c (extract_range_from_assert): Replace
fold (build (...)) with fold_build2.
2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
......
......@@ -844,7 +844,7 @@ extract_range_from_assert (value_range_t *vr_p, tree expr)
if (cond_code == LT_EXPR)
{
tree one = build_int_cst (type, 1);
max = fold (build (MINUS_EXPR, type, max, one));
max = fold_build2 (MINUS_EXPR, type, max, one);
}
set_value_range (vr_p, VR_RANGE, min, max, vr_p->equiv);
......@@ -867,7 +867,7 @@ extract_range_from_assert (value_range_t *vr_p, tree expr)
if (cond_code == GT_EXPR)
{
tree one = build_int_cst (type, 1);
min = fold (build (PLUS_EXPR, type, min, one));
min = fold_build2 (PLUS_EXPR, type, min, one);
}
set_value_range (vr_p, VR_RANGE, min, max, vr_p->equiv);
......
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