]> sourceware.org Git - libabigail.git/commit
abidw: remove always true test in resolve_declaration_only_classes
authorGiuliano Procida <gprocida@google.com>
Thu, 25 Aug 2022 11:48:55 +0000 (12:48 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 29 Aug 2022 11:07:09 +0000 (13:07 +0200)
commite57a41559b0b48e8b7f32a477e9d744b1da5cf84
tree075d0f796c4dae80c22e01c979001e358adfd8a1
parent70fc869514f844c9394428c26db736bba7e8cf8e
abidw: remove always true test in resolve_declaration_only_classes

The code that makes the last attempt to resolve declaration-only types
was protected by a conditional checking that the number of TUs for a
given type was more than 1. The previous branch checked for exactly 1.
However, the entire block is inside a conditional where the number of
TUs is guaranteed to be greater than 0.

Removing the conditional makes it clear that this branch handles all
remaining cases.

* src/abg-dwarf-reader.cc
(read_context::resolve_declaration_only_classes): Remove
tautological conditional.

Signed-off-by: Giuliano Procida <gprocida@google.com>
src/abg-dwarf-reader.cc
This page took 0.031873 seconds and 5 git commands to generate.