@@ -264,12 +264,12 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
264264 return transform! (ir, arg, order, maparg)
265265 elseif isa (arg, GlobalRef)
266266 @assert isconst (arg)
267- return ZeroBundle {order} (getfield (arg. mod, arg. name))
267+ return zero_bundle {order} () (getfield (arg. mod, arg. name))
268268 elseif isa (arg, QuoteNode)
269- return ZeroBundle {order} (arg. value)
269+ return zero_bundle {order} () {order}(arg. value)
270270 end
271271 @assert ! isa (arg, Expr)
272- return ZeroBundle {order} (arg)
272+ return zero_bundle {order} () (arg)
273273 end
274274
275275 for (ssa, (order, custom)) in enumerate (ssa_orders)
@@ -309,7 +309,7 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
309309 stmt = insert_node! (ir, ssa, NewInstruction (inst))
310310 end
311311
312- replace_call! (ir, SSAValue (ssa), Expr (:call , ZeroBundle {order}, stmt))
312+ replace_call! (ir, SSAValue (ssa), Expr (:call , zero_bundle {order} () , stmt))
313313 elseif isa (stmt, SSAValue) || isa (stmt, QuoteNode)
314314 inst[:inst ] = maparg (stmt, SSAValue (ssa), order)
315315 inst[:type ] = Any
@@ -329,7 +329,7 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
329329 inst[:type ] = Any
330330 inst[:flag ] |= CC. IR_FLAG_REFINED
331331 else
332- val = ZeroBundle {order} (inst[:inst ])
332+ val = zero_bundle {order} () (inst[:inst ])
333333 inst[:inst ] = val
334334 inst[:type ] = Const (val)
335335 end
0 commit comments