]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf: remove unnecessary braces
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 10 Mar 2025 18:56:37 +0000 (14:56 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 10 Mar 2025 20:09:02 +0000 (16:09 -0400)
Change-Id: If0b38b860e79771a16ea914af3e337fca0ee3a7d

gdb/dwarf2/read.c

index c8c2ecd645941fce70dabc47315084f2adb0452b..7b1f977787e174ff14c1fab42190086a499eb831 100644 (file)
@@ -3590,15 +3590,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 ());