Skip to content

Commit

Permalink
Merge pull request #218 from JuliaDiff/ox/reland-phi-fix
Browse files Browse the repository at this point in the history
Fix `ZeroBundle` wrapping for GlobalRef PhiNode args
  • Loading branch information
oxinabox authored Sep 27, 2023
2 parents 18cc1cb + a7f2986 commit b3e4ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/forward_demand.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
return transform!(ir, arg, order, maparg)
elseif isa(arg, GlobalRef)
@assert isconst(arg)
return insert_node!(ir, ssa, NewInstruction(Expr(:call, ZeroBundle{order}, arg)))
return ZeroBundle{order}(getfield(arg.mod, arg.name))
elseif isa(arg, QuoteNode)
return ZeroBundle{order}(arg.value)
end
Expand Down

0 comments on commit b3e4ee0

Please sign in to comment.