Skip to content

Commit f00f160

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 f2f18e9 commit f00f160

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
@@ -238,12 +238,7 @@ function to_lowered_expr(mod, ex, ssa_offset=0)
238238
elseif k == K"top"
239239
GlobalRef(Base, Symbol(ex.name_val))
240240
elseif k == K"globalref"
241-
if mod === ex.mod
242-
# Implicitly refers to name in parent module.
243-
Symbol(ex.name_val)
244-
else
245-
GlobalRef(ex.mod, Symbol(ex.name_val))
246-
end
241+
GlobalRef(ex.mod, Symbol(ex.name_val))
247242
elseif k == K"Identifier"
248243
# Implicitly refers to name in parent module
249244
# TODO: Should we even have plain identifiers at this point or should

0 commit comments

Comments
 (0)