diff options
author | Alan Modra <amodra@gmail.com> | 2016-12-03 20:54:57 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-12-03 20:54:57 +1030 |
commit | 4193bc588b4e66da0ed502eaef6e7ce85272fb42 (patch) | |
tree | dde848b362f10fd930daffd76134bd4175440513 /ld/ldexp.c | |
parent | 10c56208ee8ce4d51de64277207b84a5d1be8c95 (diff) | |
download | gdb-4193bc588b4e66da0ed502eaef6e7ce85272fb42.zip gdb-4193bc588b4e66da0ed502eaef6e7ce85272fb42.tar.gz gdb-4193bc588b4e66da0ed502eaef6e7ce85272fb42.tar.bz2 |
try_copy_symbol_type node_class check
* ldexp.c (try_copy_symbol_type): Remove unnecessary check.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r-- | ld/ldexp.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -990,16 +990,12 @@ is_align_conditional (const etree_type *tree) static void try_copy_symbol_type (struct bfd_link_hash_entry *h, etree_type *src) { - if (src->type.node_class == etree_name) - { - struct bfd_link_hash_entry *hsrc; + struct bfd_link_hash_entry *hsrc; - hsrc = bfd_link_hash_lookup (link_info.hash, src->name.name, - FALSE, FALSE, TRUE); - if (hsrc) - bfd_copy_link_hash_symbol_type (link_info.output_bfd, h, - hsrc); - } + hsrc = bfd_link_hash_lookup (link_info.hash, src->name.name, + FALSE, FALSE, TRUE); + if (hsrc != NULL) + bfd_copy_link_hash_symbol_type (link_info.output_bfd, h, hsrc); } static void |