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
This commit is contained in:
parent
f13d199cee
commit
29ac1d9ae5
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-01-12 Zdenek Dvorak <ook@ucw.cz>
|
||||
|
||||
* tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
|
||||
correct type.
|
||||
|
||||
2008-01-11 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* config/xtensa/xtensa.c (override_options): Set flag_shlib.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue