Skip to content

Commit bf833b6

Browse files
committed
minor type stability update
1 parent 33b1040 commit bf833b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ function trim_toplevel!(bt)
200200
for (i, t) in enumerate(bt)
201201
sfs = StackTraces.lookup(t)
202202
for sf in sfs
203-
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))
203+
if sf.func === Symbol("top-level scope") || (let mi = sf.linfo
204+
mi isa Core.MethodInstance && (let def = mi.def
205+
def isa Method && def.module (JuliaInterpreter, LoweredCodeUtils, Revise)
206+
end) end)
204207
itoplevel = i
205208
break
206209
end

0 commit comments

Comments
 (0)