diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2025-03-10 14:56:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-03-12 22:27:12 -0400 |
commit | 69e80b754d21b8a94ecb30e6273e38b9f4ed580f (patch) | |
tree | 9fa0a76abff8c050e15164d870fa44cc75e0f038 | |
parent | 292041562289a00364ff9baba6a0446ea208a174 (diff) | |
download | binutils-69e80b754d21b8a94ecb30e6273e38b9f4ed580f.zip binutils-69e80b754d21b8a94ecb30e6273e38b9f4ed580f.tar.gz binutils-69e80b754d21b8a94ecb30e6273e38b9f4ed580f.tar.bz2 |
gdb/dwarf: remove unnecessary braces
Change-Id: I3cd6b932d0dfb4cc07b6d48a1dc9ec35e7bfa03e
-rw-r--r-- | gdb/dwarf2/read.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index f7ebcc9..5ca3e95 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -3589,15 +3589,14 @@ build_type_psymtabs (dwarf2_per_objfile *per_objfile, sorted_by_abbrev.reserve (per_objfile->per_bfd->all_type_units.size ()); for (const auto &cu : per_objfile->per_bfd->all_units) - { - if (cu->is_debug_types) - { - auto sig_type = static_cast<signatured_type *> (cu.get ()); - sorted_by_abbrev.emplace_back - (sig_type, read_abbrev_offset (per_objfile, sig_type->section, - sig_type->sect_off)); - } - } + if (cu->is_debug_types) + { + auto sig_type = static_cast<signatured_type *> (cu.get ()); + sorted_by_abbrev.emplace_back (sig_type, + read_abbrev_offset (per_objfile, + sig_type->section, + sig_type->sect_off)); + } std::sort (sorted_by_abbrev.begin (), sorted_by_abbrev.end ()); |