Skip to content

Commit 9d6716a

Browse files
committed
remove TypedSlot
1 parent 95e32aa commit 9d6716a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/Testing.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
version:
1414
- '1.7'
1515
- '1'
16+
- '1.11.1'
1617
- 'nightly'
1718
os:
1819
- ubuntu-latest

src/Libtask.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export TArray, tzeros, tfill, TRef # legacy types back compat
1111
const TypedSlot = @static if isdefined(Core, :TypedSlot) # Julia v1.10 removed Core.TypedSlot
1212
Core.TypedSlot
1313
else
14-
Core.Compiler.TypedSlot
14+
if isdefined(Core.Compiler, :TypedSlot) # Julia 1.11 removed Core.Compiler.TypedSlot
15+
Core.Compiler.TypedSlot
16+
else
17+
Any
18+
end
1519
end
1620

1721
include("tapedfunction.jl")

src/tapedfunction.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,11 @@ function bind_var!(var::QuoteNode, bindings::Bindings, ir::Core.CodeInfo)
285285
LOGGING[] && @info "evaluating QuoteNode $var at compile time"
286286
bind_var!(eval(var), bindings, ir)
287287
end
288-
function bind_var!(var::TypedSlot, bindings::Bindings, ir::Core.CodeInfo)
289-
# turn TypedSlot to SlotNumber
290-
bind_var!(Core.SlotNumber(var.id), bindings, ir)
288+
@static if TypedSlot !== Any
289+
function bind_var!(var::TypedSlot, bindings::Bindings, ir::Core.CodeInfo)
290+
# turn TypedSlot to SlotNumber
291+
bind_var!(Core.SlotNumber(var.id), bindings, ir)
292+
end
291293
end
292294
function bind_var!(var::Core.SlotNumber, bindings::Bindings, ir::Core.CodeInfo)
293295
get!(bindings[1], var, allocate_binding!(var, bindings, ir.slottypes[var.id]))

0 commit comments

Comments
 (0)