Skip to content

Commit

Permalink
minor type stability update
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Mar 26, 2024
1 parent 33b1040 commit bf833b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ function trim_toplevel!(bt)
for (i, t) in enumerate(bt)
sfs = StackTraces.lookup(t)
for sf in sfs
if sf.func === Symbol("top-level scope") || (isa(sf.linfo, Core.MethodInstance) && isa(sf.linfo.def, Method) && ((sf.linfo::Core.MethodInstance).def::Method).module (JuliaInterpreter, LoweredCodeUtils, Revise))
if sf.func === Symbol("top-level scope") || (let mi = sf.linfo
mi isa Core.MethodInstance && (let def = mi.def
def isa Method && def.module (JuliaInterpreter, LoweredCodeUtils, Revise)
end) end)
itoplevel = i
break
end
Expand Down

0 comments on commit bf833b6

Please sign in to comment.