diff options
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r-- | gcc/tree-ssa-threadupdate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 0d61c18..c5b78a4 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -1647,9 +1647,7 @@ thread_single_edge (edge e) vec<jump_thread_edge *> *path = THREAD_PATH (e); edge eto = (*path)[1]->e; - for (unsigned int i = 0; i < path->length (); i++) - delete (*path)[i]; - delete path; + delete_jump_thread_path (path); e->aux = NULL; thread_stats.num_threaded_edges++; @@ -1693,6 +1691,7 @@ thread_single_edge (edge e) redirect_edge_and_branch (e, rd.dup_blocks[0]); flush_pending_stmts (e); + delete_jump_thread_path (npath); return rd.dup_blocks[0]; } |