Skip to content

Commit

Permalink
temporary hack to avoid #80
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Nov 28, 2023
1 parent 4ff5ae8 commit 477e47e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/signatures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,10 @@ function identify_framemethod_calls(frame)
key = stmt.args[1]
key = normalize_defsig(key, frame)
if key isa Symbol
if (isdefined(moduleof(frame), key) &&
getfield(moduleof(frame), key) isa Core.MethodTable)
# accept it
else
mi = methodinfos[key]
mi.stop = i
end
# XXX A temporary hack to fix https://github.com/JuliaDebug/LoweredCodeUtils.jl/issues/80
# We should revisit it.
mi = get(methodinfos, key, MethodInfo(1))
mi.stop = i
elseif key isa Expr # this is a module-scoped call. We don't have to worry about these because they are named
continue
end
Expand Down

0 comments on commit 477e47e

Please sign in to comment.