[applied] dwarf-reader: Fix a thinko when building vars

Message ID 87edynaieg.fsf@redhat.com
State New
Headers
Series [applied] dwarf-reader: Fix a thinko when building vars |

Commit Message

Dodji Seketeli July 14, 2022, 2:16 p.m. UTC
  Hello,

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 <dodji@redhat.com>
---
 src/abg-dwarf-reader.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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;
 		  }
 	      }
 	  }