Skip to content

Commit 310e4f7

Browse files
committed
Revert isconst change now that it is fixed
1 parent 590815a commit 310e4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/forward_demand.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +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.mod, arg.name)
263+
@assert isconst(arg)
264264
return zero_bundle{order}()(getfield(arg.mod, arg.name))
265265
elseif isa(arg, QuoteNode)
266266
return zero_bundle{order}()(arg.value)

0 commit comments

Comments
 (0)