From 0b87414ce16e805fd8a54b17ce92fa606987f031 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Thu, 14 Jul 2022 16:00:34 +0200 Subject: [PATCH] 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 --- src/abg-dwarf-reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- 2.43.5