summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index c31fbe4e..d02698b2 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -791,6 +791,8 @@ dwflpp::iterate_over_srcfile_lines (char const * srcfile,
auto_free_ref<Dwarf_Line**> free_srcsp(srcsp);
get_module_dwarf();
+ if (!this->function)
+ return;
if (line_type == RELATIVE)
{