aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
authorZdenek Dvorak <ook@ucw.cz>2008-01-12 14:43:21 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2008-01-12 13:43:21 +0000
commit29ac1d9ae567169b767eb850b95632af389ef085 (patch)
tree5a5a29af73a9d4d5593e764f7a37b18ba2551819 /gcc/tree-parloops.c
parentf13d199cee4c68696cbcc3ea3a00d5d2e03b73fd (diff)
downloadgcc-29ac1d9ae567169b767eb850b95632af389ef085.zip
gcc-29ac1d9ae567169b767eb850b95632af389ef085.tar.gz
gcc-29ac1d9ae567169b767eb850b95632af389ef085.tar.bz2
tree-parloops.c (transform_to_exit_first_loop): Cast nit to the correct type.
* tree-parloops.c (transform_to_exit_first_loop): Cast nit to the correct type. From-SVN: r131491
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r--gcc/tree-parloops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 7639af6..a6484b5 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1436,6 +1436,9 @@ transform_to_exit_first_loop (struct loop *loop, htab_t reduction_list, tree nit
/* Initialize the control variable to NIT. */
bsi = bsi_after_labels (ex_bb);
+ nit = force_gimple_operand_bsi (&bsi,
+ fold_convert (TREE_TYPE (control_name), nit),
+ false, NULL_TREE, false, BSI_SAME_STMT);
t = build_gimple_modify_stmt (control_name, nit);
bsi_insert_before (&bsi, t, BSI_NEW_STMT);
SSA_NAME_DEF_STMT (control_name) = t;