Handle memory leak in tree-inline.c.

* tree-inline.c (remap_dependence_clique): Do not remap
	debugging statements.

From-SVN: r236070
This commit is contained in:
Martin Liska 2016-05-10 12:17:58 +02:00 committed by Martin Liska
parent a579871bbc
commit bf1abda157
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-05-10 Martin Liska <mliska@suse.cz>
* tree-inline.c (remap_dependence_clique): Do not remap
debugging statements.
2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")

View File

@ -840,7 +840,7 @@ is_parm (tree decl)
static unsigned short
remap_dependence_clique (copy_body_data *id, unsigned short clique)
{
if (clique == 0)
if (clique == 0 || processing_debug_stmt)
return 0;
if (!id->dependence_map)
id->dependence_map = new hash_map<dependence_hash, unsigned short>;