summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loc2c-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loc2c-test.c b/loc2c-test.c
index 833894c2..2967b9ed 100644
--- a/loc2c-test.c
+++ b/loc2c-test.c
@@ -99,8 +99,6 @@ handle_variable (Dwarf_Die *scopes, int nscopes, int out,
Dwarf_Die die_mem, *die = vardie;
while (*fields != NULL)
{
- die = dwarf_formref_die (&attr_mem, &die_mem);
-
if (!strcmp (*fields, "="))
{
store = true;
@@ -109,6 +107,8 @@ handle_variable (Dwarf_Die *scopes, int nscopes, int out,
break;
}
+ die = dwarf_formref_die (&attr_mem, &die_mem);
+
const int typetag = dwarf_tag (die);
switch (typetag)
{