aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chrec.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-29 12:00:55 +0000
committerRichard Guenther <rguenther@suse.de>2011-04-29 12:00:55 +0000
commit3245fc46d15fb9775bb952eea14a5e995b6d0786 (patch)
tree52dcec23eb32763b819accc2f89a34aabd9cc25c /gcc/tree-chrec.c
parentba1fdef651afb4d02b9de03c7fc475d8924eda0e (diff)
2011-04-29 Richard Guenther <rguenther@suse.de>
* tree-nested.c (get_trampoline_type): Use size_int. (get_nl_goto_field): Likewise. * tree-eh.c (lower_try_finally_switch): Use integer_type_node for all indexes. (lower_eh_constructs_2): Likewise. (lower_resx): Likewise. (lower_eh_dispatch): Likewise. * tree-mudflap.c (mf_build_string): Use size_int. (mudflap_register_call): Use integer_type_node for the flag. (mudflap_enqueue_constant): Use size_int. * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR instead of rebuilding it. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@173153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-chrec.c')
-rw-r--r--gcc/tree-chrec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c
index 1e49c1d5b21..6d1dd22bbeb 100644
--- a/gcc/tree-chrec.c
+++ b/gcc/tree-chrec.c
@@ -843,8 +843,7 @@ reset_evolution_in_loop (unsigned loop_num,
tree right = reset_evolution_in_loop (loop_num, CHREC_RIGHT (chrec),
new_evol);
return build3 (POLYNOMIAL_CHREC, TREE_TYPE (left),
- build_int_cst (NULL_TREE, CHREC_VARIABLE (chrec)),
- left, right);
+ CHREC_VAR (chrec), left, right);
}
while (TREE_CODE (chrec) == POLYNOMIAL_CHREC