@@ -262,12 +262,12 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
262262 return transform! (ir, arg, order, maparg)
263263 elseif isa (arg, GlobalRef)
264264 @assert isconst (arg)
265- return ZeroBundle {order} (getfield (arg. mod, arg. name))
265+ return zero_bundle {order} () (getfield (arg. mod, arg. name))
266266 elseif isa (arg, QuoteNode)
267- return ZeroBundle {order} (arg. value)
267+ return zero_bundle {order} () {order}(arg. value)
268268 end
269269 @assert ! isa (arg, Expr)
270- return ZeroBundle {order} (arg)
270+ return zero_bundle {order} () (arg)
271271 end
272272
273273 for (ssa, (order, custom)) in enumerate (ssa_orders)
@@ -307,7 +307,7 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
307307 stmt = insert_node! (ir, ssa, NewInstruction (inst))
308308 end
309309
310- replace_call! (ir, SSAValue (ssa), Expr (:call , ZeroBundle {order}, stmt))
310+ replace_call! (ir, SSAValue (ssa), Expr (:call , zero_bundle {order} () , stmt))
311311 elseif isa (stmt, SSAValue) || isa (stmt, QuoteNode)
312312 inst[:inst ] = maparg (stmt, SSAValue (ssa), order)
313313 inst[:type ] = Any
@@ -322,7 +322,7 @@ function forward_diff_no_inf!(ir::IRCode, to_diff::Vector{Pair{SSAValue,Int}};
322322 inst[:type ] = Any
323323 inst[:flag ] |= CC. IR_FLAG_REFINED
324324 else
325- val = ZeroBundle {order} (inst[:inst ])
325+ val = zero_bundle {order} () (inst[:inst ])
326326 inst[:inst ] = val
327327 inst[:type ] = Const (val)
328328 end
0 commit comments