From 842c51cd0cefbf62ca1390f4007d81777a1f29f4 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sun, 7 Jan 2024 20:31:32 -0500 Subject: [PATCH] Update base/compiler/inferencestate.jl Co-authored-by: Jeff Bezanson --- base/compiler/inferencestate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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