tree-inline decl_map: skip mapping NULL to itself
Mapping a NULL key is no use, skip it. for gcc/ChangeLog * tree-inline.cc (insert_decl_map): Skip mapping a NULL decl as value to itself.
This commit is contained in:
parent
50a0270389
commit
d7c8a16537
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ insert_decl_map (copy_body_data *id, tree key, tree value)
|
|||
|
||||
/* Always insert an identity map as well. If we see this same new
|
||||
node again, we won't want to duplicate it a second time. */
|
||||
if (key != value)
|
||||
if (key != value && value)
|
||||
id->decl_map->put (value, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue