Skip to content

Commit 11763e5

Browse files
committed
fix
1 parent 7c28f67 commit 11763e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/RuntimeGeneratedFunctions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ struct RuntimeGeneratedFunction{argnames, cache_tag, context_tag, id, B} <: Func
5555
def = splitdef(ex)
5656
args = normalize_args(get(def, :args, Symbol[]))
5757
body = def[:body]
58-
body = closures_to_opaque(body)
58+
if opaque_closures
59+
body = closures_to_opaque(body)
60+
end
5961
id = expr_to_id(body)
6062
cached_body = _cache_body(cache_tag, id, body)
6163
new{Tuple(args), cache_tag, context_tag, id, typeof(cached_body)}(cached_body)

0 commit comments

Comments
 (0)