From bb35ccb1efb2c91d1eab17fc4fb26c8b2f32ebeb Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 19 Nov 2015 08:47:16 +0000 Subject: [PATCH] re PR middle-end/68117 (error: invalid PHI argument <<< Unknown tree: >>>) 2015-11-19 Richard Biener PR middle-end/68117 * tree-ssa.c (delete_tree_ssa): Revert removal of call to redirect_edge_var_map_destroy. From-SVN: r230594 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3ba93271b81..ea632f60c19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-19 Richard Biener + + PR middle-end/68117 + * tree-ssa.c (delete_tree_ssa): Revert removal of call to + redirect_edge_var_map_destroy. + 2015-11-19 Jakub Jelinek PR target/67770 diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index 84a4d5b9495..02fca4c8e67 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -1126,6 +1126,9 @@ delete_tree_ssa (struct function *fn) fn->gimple_df->decls_to_pointers = NULL; fn->gimple_df->modified_noreturn_calls = NULL; fn->gimple_df = NULL; + + /* We no longer need the edge variable maps. */ + redirect_edge_var_map_destroy (); } /* Return true if EXPR is a useless type conversion, otherwise return -- 2.30.2