Skip to content

Commit b12229b

Browse files
committed
Work around Julia issue 59222
1 parent 47189dc commit b12229b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ function opaque_closure(
192192
ir.debuginfo.def === nothing &&
193193
(ir.debuginfo.def = :var"generated IR for OpaqueClosure")
194194
# On v1.12 OpaqueClosure expects the first arg to be the environment.
195-
ir.argtypes[1] = typeof(env)
195+
# ir.argtypes[1] = typeof(env)
196+
# TODO(mhauru) However, there was a bug in this new treatment of argtypes
197+
# (https://github.com/JuliaLang/julia/issues/59222) the fix for which did not make
198+
# it to v1.12.0, so for now we need to use the below workaround.
199+
ir.argtypes[1] = Tuple
196200
end
197201
nargtypes = length(ir.argtypes)
198202
nargs = nargtypes - 1

0 commit comments

Comments
 (0)