Skip to content

Commit 595276f

Browse files
committed
1 parent 447c086 commit 595276f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LoweredCodeUtils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module LoweredCodeUtils
33
using Core: SimpleVector, CodeInfo
44
using Base.Meta: isexpr
55
using JuliaInterpreter
6-
using JuliaInterpreter: SSAValue, SlotNumber
6+
using JuliaInterpreter: SSAValue, SlotNumber, Frame
77
using JuliaInterpreter: @lookup, moduleof, pc_expr, step_expr!, is_global_ref, whichtt,
88
next_until!, finish_and_return!, nstatements, codelocation
99

@@ -37,6 +37,7 @@ function getcallee(stmt)
3737
error(stmt, " is not a call expression")
3838
end
3939

40+
ismethod(frame::Frame) = ismethod(pc_expr(frame))
4041
ismethod(stmt) = isexpr(stmt, :method)
4142
ismethod1(stmt) = isexpr(stmt, :method, 1)
4243
ismethod3(stmt) = isexpr(stmt, :method, 3)

0 commit comments

Comments
 (0)