diff --git a/Project.toml b/Project.toml index 1273203..607d756 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LoweredCodeUtils" uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b" authors = ["Tim Holy "] -version = "2.4.7" +version = "2.4.8" [deps] JuliaInterpreter = "aa1ae85d-cabe-5617-a682-6adf51b2e16a" diff --git a/src/signatures.jl b/src/signatures.jl index 18e2890..3812876 100644 --- a/src/signatures.jl +++ b/src/signatures.jl @@ -146,10 +146,12 @@ function identify_framemethod_calls(frame) for (i, stmt) in enumerate(frame.framecode.src.code) isa(stmt, Expr) || continue if stmt.head === :global && length(stmt.args) == 1 - key = stmt.args[1]::Symbol - # We don't know for sure if this is a reference to a method, but let's - # tentatively cue it - push!(refs, key=>i) + key = stmt.args[1] + if isa(key, Symbol) + # We don't know for sure if this is a reference to a method, but let's + # tentatively cue it + push!(refs, key=>i) + end elseif stmt.head === :thunk && stmt.args[1] isa CodeInfo tsrc = stmt.args[1]::CodeInfo if length(tsrc.code) == 1