]> sourceware.org Git - libabigail.git/commit
RHBZ1951496 - ir: Acknowledge that "void type" is not canonicalized
authorDodji Seketeli <dodji@redhat.com>
Wed, 8 Sep 2021 12:56:51 +0000 (14:56 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 8 Sep 2021 14:14:18 +0000 (16:14 +0200)
commit7488c8df3bf10750ce059a0ec1d44d8149149c86
treebe5e64aee825a55a326796a493bf221fe69eb899
parent3800fff52ef9861b6660b5796baf5a8cf3af1ced
RHBZ1951496 - ir: Acknowledge that "void type" is not canonicalized

In the libabigail type system, the void type is a synthetic type and
is thus not canonicalized.

We forgot to mention this "void type" to
hash_as_canonical_type_or_constant as being one of the types that are
allowed to be non canonicalized in the system.  This omission violates
an assert in that function.

The patch introduces a new is_allowed_non_canonicalized_type
subroutine that defines the types that are allowed to be non
canonicalized in the system and make it recognize "void type" as such.

hash_as_canonical_type_or_constant uses the new
is_allowed_non_canonicalized_type.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1951496

* src/abg-ir.cc (is_allowed_non_canonicalized_type): Define new
static function.
(hash_as_canonical_type_or_constant): Use it.

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