Skip to content

Commit 4190f6f

Browse files
committed
1 parent 1e1ad26 commit 4190f6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/codegen/reverse.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ function make_opaque_closure(interp, typ, name, meth_nargs::Int, isva, lno, ci,
1414
ocm = ccall(:jl_new_opaque_closure_from_code_info, Any, (Any, Any, Any, Any, Any, Cint, Any, Cint, Cint, Any),
1515
typ, Union{}, rettype, @__MODULE__, ci, lno.line, lno.file, meth_nargs, isva, ()).source
1616
end
17-
return Expr(:new_opaque_closure, typ, Union{}, Any, ocm, revs...)
1817
else
1918
oc_nargs = Int64(meth_nargs)
20-
Expr(:new_opaque_closure, typ, Union{}, Any, true,
21-
Expr(:opaque_closure_method, name, oc_nargs, isva, lno, ci), revs...)
19+
ocm = Expr(:opaque_closure_method, name, oc_nargs, isva, lno, ci)
2220
end
21+
oc = Expr(:new_opaque_closure, typ, Union{}, Any, true, ocm, revs...)
22+
@static VERSION < v"1.12.0-DEV.691" ? deleteat!(oc.args, 4) : nothing
23+
oc
2324
end
2425

2526
function diffract_ir!(ir, ci, meth, sparams::Core.SimpleVector, nargs::Int, N::Int, interp=nothing, curs=nothing)

0 commit comments

Comments
 (0)