Skip to content

Commit 2da2fe2

Browse files
committed
more adjustments
1 parent 16d12ce commit 2da2fe2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codeedges.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ function direct_links!(cl::CodeLinks, src::CodeInfo)
250250
target = P(SlotNumber(id), cl.slotpreds[id])
251251
push!(cl.slotassigns[id], i)
252252
elseif isa(lhs, NamedVar)
253+
if isa(lhs, Symbol)
254+
lhs = GlobalRef(cl.thismod, lhs)
255+
end
253256
targetstore = get(cl.namepreds, lhs, nothing)
254257
if targetstore === nothing
255258
cl.namepreds[lhs] = targetstore = Links()

0 commit comments

Comments
 (0)