]> sourceware.org Git - libabigail.git/commit
dwarf-reader: Make die_peel_{qual_ptr,typedef} always set peeled type
authorDodji Seketeli <dodji@redhat.com>
Fri, 2 Dec 2022 14:59:39 +0000 (14:59 +0000)
committerDodji Seketeli <dodji@redhat.com>
Fri, 2 Dec 2022 16:12:59 +0000 (17:12 +0100)
commitac53e88bdb6d85df7bd60c4feec949f510f87bc9
treea41d71a31cf0a2d7563d6590f1ff26efe9f1c272
parent4bdaf30bbbe31994510764b48164fe2dd20ba8bb
dwarf-reader: Make die_peel_{qual_ptr,typedef} always set peeled type

When die_peel_{qual_ptr,typedef} don't actually peel anything, they
don't set the peeled type output argument.  So callers expecting that
argument to be set can be surprised by the fact the peeled argument
might not be set.

* src/abg-dwarf-reader.cc (die_peel_qual_ptr, die_peel_typedef):
If the function returned true, then set the peeled argument even
if the function hasn't peeled anything.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc
This page took 0.030733 seconds and 5 git commands to generate.