Skip to content

Commit

Permalink
Adjust to upcoming effects change
Browse files Browse the repository at this point in the history
This is for JuliaLang/julia#43852.

Probably hold off on merging until the review phase is through,
but the PR is here for people who want to work on the branch
and need Revise to work.
  • Loading branch information
Keno committed Jan 22, 2022
1 parent 99893a0 commit eb3798b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ function build_compiled_call!(stmt::Expr, fcall, code, idx, nargs::Int, sparams:
# f(x, y) = ccall(:jl_value_ptr, Ptr{Cvoid}, (Float32,Any), x, y)
# @code_lowered f(2, 3)
args = []
for (atype, arg) in zip(ArgType, stmt.args[6:6+nargs-1])
argstart = isdefined(Base, Symbol("@assume_effects")) ? 7 : 6
for (atype, arg) in zip(ArgType, stmt.args[argstart:argstart+nargs-1])
if atype === Any
push!(args, arg)
else
Expand Down

0 comments on commit eb3798b

Please sign in to comment.