Skip to content

Commit 188f977

Browse files
authored
try fixing opaque_closure generation on 1.12
As suggested by @JeffBezanson
1 parent 45e61a5 commit 188f977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RuntimeGeneratedFunctions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function closures_to_opaque(ex::Expr, return_type = nothing)
306306
fdef[:body] = body
307307
name = get(fdef, :name, nothing)
308308
name !== nothing && delete!(fdef, :name)
309-
_ex = Expr(:opaque_closure, combinedef(fdef))
309+
_ex = Expr(:macrocall, Symbol("@opaque"), LineNumberNode(0), combinedef(fdef))
310310
# TODO: emit named opaque closure for better stacktraces
311311
# (ref https://github.com/JuliaLang/julia/pull/40242)
312312
if name !== nothing

0 commit comments

Comments
 (0)