]> sourceware.org Git - libabigail.git/commit
get_canonical_type_for: restore environment better
authorGiuliano Procida <gprocida@google.com>
Wed, 17 Jun 2020 16:17:20 +0000 (17:17 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 24 Jun 2020 05:31:17 +0000 (07:31 +0200)
commit5f1945b130f2a4593bb6a93c36ff6e30bdf45cac
tree4c7f7f0b605fa10a9fc80522b056f18301a09ab0
parenta5d02b95a673651f2009faeefdc394078c251a7e
get_canonical_type_for: restore environment better

The method type_base::get_canonical_type_for contains some logic which
temporarily changes a couple of control flags in the type's
environment. It then restores these, but not consistently.

This patch ensures the flags are restored unconditionally.

* src/abg-ir.cc (get_canonical_type_for): Ensure the
do_on_the_fly_canonicalization and
decl_only_class_equals_definition flags are restored
unconditionally.

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