projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a0270
)
tree-inline decl_map: skip mapping NULL to itself
author
Alexandre Oliva
<oliva@adacore.com>
Thu, 29 Dec 2022 17:32:49 +0000
(14:32 -0300)
committer
Alexandre Oliva
<oliva@gnu.org>
Thu, 29 Dec 2022 17:39:46 +0000
(14:39 -0300)
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.
gcc/tree-inline.cc
patch
|
blob
|
history
diff --git
a/gcc/tree-inline.cc
b/gcc/tree-inline.cc
index
c6c86af
..
bfea1cc
100644
(file)
--- 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);
}