Commit 131138d5 by Eric Botcazou

* tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.

From-SVN: r273145
parent 0dc7adb0
2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
2019-07-05 Sam Tebbs <sam.tebbs@arm.com> 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
PR target/90712 PR target/90712
* aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk check * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
with a frame laid out check. check with a frame laid out check.
2019-07-05 Richard Biener <rguenther@suse.de> 2019-07-05 Richard Biener <rguenther@suse.de>
......
...@@ -139,7 +139,8 @@ create_iv (tree base, tree step, tree var, struct loop *loop, ...@@ -139,7 +139,8 @@ create_iv (tree base, tree step, tree var, struct loop *loop,
} }
else else
{ {
gimple_set_location (stmt, gimple_location (gsi_stmt (*incr_pos))); if (!gsi_end_p (*incr_pos))
gimple_set_location (stmt, gimple_location (gsi_stmt (*incr_pos)));
gsi_insert_before (incr_pos, stmt, GSI_NEW_STMT); gsi_insert_before (incr_pos, stmt, GSI_NEW_STMT);
} }
......
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