[applied] ir: Avoid crashing canonicalizing anonymous types with member fns
Commit Message
Hello,
* src/abg-ir.cc (maybe_adjust_canonical_type): Don't bother
detecting discrepancies between member functions of the
canonicalized class and member functions of the canonical class
for anonymous classes.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to the mainline.
---
src/abg-ir.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -16133,7 +16133,8 @@ maybe_adjust_canonical_type(const type_base_sptr& canonical,
m->set_symbol(s1);
}
else
- if (canonical_class->get_corpus()
+ if (!is_anonymous_type(cl)
+ && canonical_class->get_corpus()
&& cl->get_corpus()
&& (cl->get_corpus() == canonical_class->get_corpus()))
// There is a member function defined and publicly