Skip to content

Commit eb3798b

Browse files
committed
Adjust to upcoming effects change
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.
1 parent 99893a0 commit eb3798b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/optimize.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ function build_compiled_call!(stmt::Expr, fcall, code, idx, nargs::Int, sparams:
272272
# f(x, y) = ccall(:jl_value_ptr, Ptr{Cvoid}, (Float32,Any), x, y)
273273
# @code_lowered f(2, 3)
274274
args = []
275-
for (atype, arg) in zip(ArgType, stmt.args[6:6+nargs-1])
275+
argstart = isdefined(Base, Symbol("@assume_effects")) ? 7 : 6
276+
for (atype, arg) in zip(ArgType, stmt.args[argstart:argstart+nargs-1])
276277
if atype === Any
277278
push!(args, arg)
278279
else

0 commit comments

Comments
 (0)