diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc index 82d71c3c..c8cd5170 100644 --- a/src/abg-dwarf-reader.cc +++ b/src/abg-dwarf-reader.cc @@ -14251,14 +14251,7 @@ static corpus_sptr read_debug_info_into_corpus(read_context& ctxt) { ctxt.clear_per_corpus_data(); - - if (!ctxt.current_corpus()) - { - corpus_sptr corp (new corpus(ctxt.env(), ctxt.elf_path())); - ctxt.current_corpus(corp); - if (!ctxt.env()) - ctxt.env(corp->get_environment()); - } + ctxt.current_corpus(std::make_shared(ctxt.env(), ctxt.elf_path())); // First set some mundane properties of the corpus gathered from // ELF.