Skip to content

Commit

Permalink
Adjust to upcoming julia#54341 (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed May 7, 2024
1 parent 17c53a1 commit 5f6a63d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ function CC.IRInterpretationState(interp::CthulhuInterpreter,
ir = CC.copy(inferred.ir)
src = inferred.src
method_info = CC.MethodInfo(src)
if VERSION >= v"1.12.0-DEV.341"
if isdefined(Base, :__has_internal_change) && Base.__has_internal_change(v"1.12-alpha", :codeinfonargs)
argtypes = CC.va_process_argtypes(CC.optimizer_lattice(interp), argtypes, src.nargs, src.isva)
elseif VERSION >= v"1.12.0-DEV.341"
argtypes = CC.va_process_argtypes(CC.optimizer_lattice(interp), argtypes, mi)
end
return CC.IRInterpretationState(interp, method_info, ir, mi, argtypes, world,
Expand Down

0 comments on commit 5f6a63d

Please sign in to comment.