Skip to content

Commit 375f474

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 9932de3 commit 375f474

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

0 commit comments

Comments
 (0)