mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-21 08:17:00 +00:00
Set the corpus of all ABI artifact reads from abixml
It turns out we were not setting the corpus for all ABI artifact read from abixml. That was preventing the use of the ODR-based speed optimization during type canonicalization, for corpora built from abixml. Fixed thus. * src/abg-reader.cc (read_translation_unit): Set the current corpus to the current translation unit being built. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
4b754229d1
commit
b198333ba7
@ -1118,6 +1118,7 @@ read_translation_unit(read_context& ctxt, xmlNodePtr node)
|
||||
ctxt.set_corpus_node(node);
|
||||
|
||||
tu.reset(new translation_unit("", ctxt.get_environment()));
|
||||
tu->set_corpus(ctxt.get_corpus().get());
|
||||
|
||||
xml::xml_char_sptr addrsize_str =
|
||||
XML_NODE_GET_ATTRIBUTE(node, "address-size");
|
||||
|
Loading…
Reference in New Issue
Block a user