]> sourceware.org Git - libabigail.git/commit
Better handle pointer-to-void in various places of the pipeline
authorDodji Seketeli <dodji@redhat.com>
Thu, 11 Dec 2014 14:47:44 +0000 (15:47 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 11 Dec 2014 15:01:07 +0000 (16:01 +0100)
commit99b31c92ff9387a2df79ce5f7643ef318c40237f
tree306a153edd7d46682bbb8ab917f9d97691d62347
parent1176c1c4ed94f32a552d1cdd2caad9820608053b
Better handle pointer-to-void in various places of the pipeline

This is the last patch that should fix the issue
https://sourceware.org/bugzilla/show_bug.cgi?id=17655

A pointer to void can be represented as an instance of
abigail::ir::pointer_type_def which has a NULL pointed-to attribute.

Unfortunately, there are various places in the code that assume that
abigail::ir::pointer_type_def::get_pointed_to_type() returns a
non-null value.  This patch is an attempt at fixing those spots.

* src/abg-comparison.cc (pointer_diff::report): Handle the case of
pointer to void.
* src/abg-dwarf-reader.cc (build_pointer_type_def): Assert that
the underlying pointer is non-null.
* src/abg-ir.cc (pointer_type_def::pointer_type_def): Handle the
case of pointer to void.
(equals): Likewise in the overload for const pointer_type_def.
(pointer_type_def::get_qualified_name): Likewise.

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