Skip to content

Commit 477e47e

Browse files
committed
temporary hack to avoid #80
1 parent 4ff5ae8 commit 477e47e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/signatures.jl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,10 @@ function identify_framemethod_calls(frame)
165165
key = stmt.args[1]
166166
key = normalize_defsig(key, frame)
167167
if key isa Symbol
168-
if (isdefined(moduleof(frame), key) &&
169-
getfield(moduleof(frame), key) isa Core.MethodTable)
170-
# accept it
171-
else
172-
mi = methodinfos[key]
173-
mi.stop = i
174-
end
168+
# XXX A temporary hack to fix https://github.com/JuliaDebug/LoweredCodeUtils.jl/issues/80
169+
# We should revisit it.
170+
mi = get(methodinfos, key, MethodInfo(1))
171+
mi.stop = i
175172
elseif key isa Expr # this is a module-scoped call. We don't have to worry about these because they are named
176173
continue
177174
end

0 commit comments

Comments
 (0)