diff options
Diffstat (limited to 'gcc/tree-ssa-loop-manip.c')
-rw-r--r-- | gcc/tree-ssa-loop-manip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-manip.c b/gcc/tree-ssa-loop-manip.c index 715c412c790..bce9890d6a4 100644 --- a/gcc/tree-ssa-loop-manip.c +++ b/gcc/tree-ssa-loop-manip.c @@ -103,8 +103,9 @@ create_iv (tree base, tree step, tree var, struct loop *loop, if (stmts) bsi_insert_on_edge_immediate (pe, stmts); - stmt = build2_gimple (GIMPLE_MODIFY_STMT, va, - build2 (incr_op, TREE_TYPE (base), vb, step)); + stmt = build_gimple_modify_stmt (va, + build2 (incr_op, TREE_TYPE (base), + vb, step)); SSA_NAME_DEF_STMT (va) = stmt; if (after) bsi_insert_after (incr_pos, stmt, BSI_NEW_STMT); |