aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-inline.cc')
-rw-r--r--gcc/tree-inline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.cc b/gcc/tree-inline.cc
index c6c86af..bfea1cc 100644
--- a/gcc/tree-inline.cc
+++ b/gcc/tree-inline.cc
@@ -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);
}