fix pr62009 use after free in redirect_edge_var_map_dup
authorTrevor Saunders <tsaunders@mozilla.com>
Tue, 5 Aug 2014 19:52:08 +0000 (19:52 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Tue, 5 Aug 2014 19:52:08 +0000 (19:52 +0000)
commit6ef6945c9cbb0ab43f3b04e97f0a2285494a9c87
tree08e15d996f5d38479d228272b96d20455a6a1b92
parentfa12e57e0cbd3f761326c511cc2eeac9581f6889
fix pr62009 use after free in redirect_edge_var_map_dup

The change to get the entry for the old edge before inserting the new
one was incorrect because if inserting the new one resized the table
then the pointer to the entry for the old one would become invalid.

gcc/

* tree-ssa.c (redirect_edge_var_map_dup): insert newe before
getting olde.

From-SVN: r213644
gcc/ChangeLog
gcc/tree-ssa.c