Skip to content

Commit 6a651c5

Browse files
committed
Adjust to 1.12 world age semantics
1 parent bffa0fd commit 6a651c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/codegen/forward_demand.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
260260
# TODO: Should we remember whether the callbacks wanted the arg?
261261
return transform!(ir, arg, order, maparg)
262262
elseif isa(arg, GlobalRef)
263-
@assert isconst(arg)
264-
return zero_bundle{order}()(getfield(arg.mod, arg.name))
263+
return insert_node!(ir, pos, NewInstruction(Expr(:call, zero_bundle{order}(), arg)), #=attach_after=#true)
265264
elseif isa(arg, QuoteNode)
266265
return zero_bundle{order}()(arg.value)
267266
end

0 commit comments

Comments
 (0)