Skip to content

Commit 9cf47db

Browse files
authored
Update to support 1.10
JuliaLang/julia#48766 makes it so this function takes in a world age.
1 parent fae23e7 commit 9cf47db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/overdub.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ function reflect(@nospecialize(sigtypes::Tuple), world::UInt = get_world_counter
118118
method_instance === nothing && return nothing
119119
method_signature = method.sig
120120
static_params = Any[raw_static_params...]
121-
code_info = Core.Compiler.retrieve_code_info(method_instance)
121+
@static if VERSION >= v"1.10.0-DEV.873"
122+
code_info = Core.Compiler.retrieve_code_info(method_instance, world)
123+
else
124+
code_info = Core.Compiler.retrieve_code_info(method_instance)
125+
end
122126
isa(code_info, CodeInfo) || return nothing
123127
code_info = copy_code_info(code_info)
124128
verbose_lineinfo!(code_info, S)

0 commit comments

Comments
 (0)