diff --git a/src/codegen.cpp b/src/codegen.cpp index af6c6ea34a3a4..15104498b6e84 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -4640,6 +4640,8 @@ static std::unique_ptr emit_function(jl_lambda_info_t *lam, jl_llvm_func if (ctx.debug_enabled) // set initial line number builder.SetCurrentDebugLocation(topdebugloc); + if (do_coverage) + coverageVisitLine(ctx.file, toplineno); bool prevlabel = false; int lno = -1; int prevlno = -1;