Skip to content

Commit 447c086

Browse files
committed
Update for JuliaInterpreter's own SSAValue/SlotNumber
1 parent e4ea062 commit 447c086

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LoweredCodeUtils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module LoweredCodeUtils
22

3-
using Core: SimpleVector, CodeInfo, SSAValue
3+
using Core: SimpleVector, CodeInfo
44
using Base.Meta: isexpr
55
using JuliaInterpreter
6+
using JuliaInterpreter: SSAValue, SlotNumber
67
using JuliaInterpreter: @lookup, moduleof, pc_expr, step_expr!, is_global_ref, whichtt,
78
next_until!, finish_and_return!, nstatements, codelocation
89

@@ -464,7 +465,7 @@ function bodymethod(mkw::Method)
464465
if isa(stmt, Expr)
465466
if stmt.head == :call
466467
a = stmt.args[argno]
467-
if isa(a, Core.SlotNumber)
468+
if isa(a, SlotNumber)
468469
if slotnames[a.id] == Symbol("#self#")
469470
return true
470471
end

0 commit comments

Comments
 (0)