We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1ad26 commit 4190f6fCopy full SHA for 4190f6f
src/codegen/reverse.jl
@@ -14,12 +14,13 @@ function make_opaque_closure(interp, typ, name, meth_nargs::Int, isva, lno, ci,
14
ocm = ccall(:jl_new_opaque_closure_from_code_info, Any, (Any, Any, Any, Any, Any, Cint, Any, Cint, Cint, Any),
15
typ, Union{}, rettype, @__MODULE__, ci, lno.line, lno.file, meth_nargs, isva, ()).source
16
end
17
- return Expr(:new_opaque_closure, typ, Union{}, Any, ocm, revs...)
18
else
19
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...)
+ ocm = Expr(:opaque_closure_method, name, oc_nargs, isva, lno, ci)
22
+ oc = Expr(:new_opaque_closure, typ, Union{}, Any, true, ocm, revs...)
+ @static VERSION < v"1.12.0-DEV.691" ? deleteat!(oc.args, 4) : nothing
23
+ oc
24
25
26
function diffract_ir!(ir, ci, meth, sparams::Core.SimpleVector, nargs::Int, N::Int, interp=nothing, curs=nothing)
0 commit comments