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 47189dc commit b12229bCopy full SHA for b12229b
src/utils.jl
@@ -192,7 +192,11 @@ function opaque_closure(
192
ir.debuginfo.def === nothing &&
193
(ir.debuginfo.def = :var"generated IR for OpaqueClosure")
194
# On v1.12 OpaqueClosure expects the first arg to be the environment.
195
- ir.argtypes[1] = typeof(env)
+ # 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
200
end
201
nargtypes = length(ir.argtypes)
202
nargs = nargtypes - 1
0 commit comments