Skip to content

Commit 9949498

Browse files
committed
1 parent 21f93e3 commit 9949498

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Cassette"
22
uuid = "7057c7e9-c182-5462-911a-8362d720325c"
3-
version = "0.3.7"
3+
version = "0.3.8"
44

55
[compat]
66
julia = "1"

src/overdub.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@ mutable struct Reflection
2727
code_info::CodeInfo
2828
end
2929

30-
if VERSION < v"1.1.0-DEV.762"
30+
@static if VERSION < v"1.1.0-DEV.762"
3131
copy_code_info(code_info) = Core.Compiler.copy_code_info(code_info)
3232
else
3333
copy_code_info(code_info) = copy(code_info)
3434
end
3535

36-
if VERSION < v"1.2.0-DEV.573"
37-
specialize_method(method, metharg, methsp, world, force) = Core.Compiler.code_for_method(method, metharg, methsp, world, force)
36+
@static if VERSION v"1.8.0-DEV.369"
37+
# https://github.com/JuliaLang/julia/pull/41920
38+
specialize_method(method, metharg, methsp, world, preexisting) = Core.Compiler.specialize_method(method, metharg, methsp; preexisting)
39+
elseif VERSION < v"1.2.0-DEV.573"
40+
specialize_method(method, metharg, methsp, world, preexisting) = Core.Compiler.code_for_method(method, metharg, methsp, world, preexisting)
3841
else
39-
specialize_method(method, metharg, methsp, world, force) = Core.Compiler.specialize_method(method, metharg, methsp, force)
42+
specialize_method(method, metharg, methsp, world, preexisting) = Core.Compiler.specialize_method(method, metharg, methsp, preexisting)
4043
end
4144

4245
function overdubbed_iterate(ctx, iterate)

0 commit comments

Comments
 (0)