diff --git a/base/compiler/inferencestate.jl b/base/compiler/inferencestate.jl index c74defbf8cf22..99637588da026 100644 --- a/base/compiler/inferencestate.jl +++ b/base/compiler/inferencestate.jl @@ -464,7 +464,7 @@ should_insert_coverage(mod::MethodInstance) = should_insert_coverage(mod.def) should_insert_coverage(mod::Module) = false function should_insert_coverage(info::DebugInfo) linetable = info.linetable - linetable === nothing || (should_insert_coverage(should_insert_coverage) && return true) + linetable === nothing || (should_insert_coverage(linetable) && return true) should_insert_coverage(info.def) && return true return false end