Skip to content

Commit 78ed407

Browse files
committed
Updates to const and global lowering
JuliaLang/julia#54773, JuliaLang/julia#56713, JuliaLang/julia#57626. Some changes omitted from `expand-decls` and `expand-assignment`.
1 parent 0124c16 commit 78ed407

File tree

6 files changed

+212
-78
lines changed

6 files changed

+212
-78
lines changed

src/closure_conversion.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ function _convert_closures(ctx::ClosureConversionCtx, ex)
344344
@assert kind(ex[1]) == K"BindingId"
345345
binfo = lookup_binding(ctx, ex[1])
346346
if binfo.kind == :global
347-
@ast ctx ex [K"call"
348-
"set_binding_type!"::K"core"
349-
binfo.mod::K"Value"
350-
binfo.name::K"Symbol"
347+
@ast ctx ex [
348+
K"globaldecl"
349+
ex[1]
351350
_convert_closures(ctx, ex[2])
351+
# TODO (null)?
352352
]
353353
else
354354
makeleaf(ctx, ex, K"TOMBSTONE")

0 commit comments

Comments
 (0)