Skip to content

Commit bac1331

Browse files
committed
Adapt to different GeneratedFunctionStub signature
Signature changed in JuliaLang/julia#57230. Thanks @aviatesk for the help!
1 parent 3a50c31 commit bac1331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ end
282282
# expression into a CodeInfo.
283283
#
284284
# `args` passed into stub by the Julia runtime are (parent_func, static_params..., arg_types...)
285-
function (g::GeneratedFunctionStub)(world::UInt, source::LineNumberNode, @nospecialize args...)
285+
function (g::GeneratedFunctionStub)(world::UInt, source::Method, @nospecialize args...)
286286
# Some of the lowering pipeline from lower() and the pass-specific setup is
287287
# re-implemented here because generated functions are very much (but not
288288
# entirely) like macro expansion.
@@ -334,7 +334,7 @@ function (g::GeneratedFunctionStub)(world::UInt, source::LineNumberNode, @nospec
334334
ctx2, ex2 = expand_forms_2( ctx1, ex1)
335335

336336
# Wrap expansion in a non-toplevel lambda and run scope resolution
337-
ex2 = @ast ctx2 source [K"lambda"(is_toplevel_thunk=false)
337+
ex2 = @ast ctx2 ex0 [K"lambda"(is_toplevel_thunk=false)
338338
[K"block"
339339
(string(n)::K"Identifier" for n in g.argnames)...
340340
]

0 commit comments

Comments
 (0)