From: Dodji Seketeli Date: Thu, 14 Jul 2022 14:00:34 +0000 (+0200) Subject: dwarf-reader: Fix a thinko when building vars X-Git-Tag: libabigail-2.1~38 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0b87414ce16e805fd8a54b17ce92fa606987f031;p=libabigail.git dwarf-reader: Fix a thinko when building vars While looking at something else, I noticed that we were getting out early when building the IR for vars. Fixed thus. * src/abg-dwarf-reader.cc (build_ir_node_from_die): Don't get out early when building vars. Signed-off-by: Dodji Seketeli --- diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc index 0328079d..02fedbe1 100644 --- a/src/abg-dwarf-reader.cc +++ b/src/abg-dwarf-reader.cc @@ -15831,7 +15831,7 @@ build_ir_node_from_die(read_context& ctxt, } ABG_ASSERT(m->get_scope()); ctxt.maybe_add_var_to_exported_decls(m.get()); - return m; + result = m; } } }