Skip to content

Commit 874f75c

Browse files
committed
Don't produce raw symbol from globalref
This used to implicitly refer to a module-level name, but lowering is now expected to wrap it in a `globalref`. Part of JuliaLang/julia#54772
1 parent f20ae00 commit 874f75c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/eval.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,7 @@ function to_lowered_expr(mod, ex, ssa_offset=0)
228228
elseif k == K"top"
229229
GlobalRef(Base, Symbol(ex.name_val))
230230
elseif k == K"globalref"
231-
if mod === ex.mod
232-
# Implicitly refers to name in parent module.
233-
Symbol(ex.name_val)
234-
else
235-
GlobalRef(ex.mod, Symbol(ex.name_val))
236-
end
231+
GlobalRef(ex.mod, Symbol(ex.name_val))
237232
elseif k == K"Identifier"
238233
# Implicitly refers to name in parent module
239234
# TODO: Should we even have plain identifiers at this point or should

0 commit comments

Comments
 (0)