diff options
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index ab982f50482..5c3543ecf39 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -2658,10 +2658,10 @@ execute_optimize_widening_mul (void) gimple_call_arg (stmt, 0))) { unlink_stmt_vdef (stmt); - gsi_remove (&gsi, true); - release_defs (stmt); - if (gimple_purge_dead_eh_edges (bb)) + if (gsi_remove (&gsi, true) + && gimple_purge_dead_eh_edges (bb)) cfg_changed = true; + release_defs (stmt); continue; } break; |