Skip to content

Commit 8885c4e

Browse files
committed
1 parent c93dedf commit 8885c4e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/optimize.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,12 @@ function replace_coretypes_list!(list::AbstractVector; rev::Bool=false)
379379
else
380380
isa(x, Core.SSAValue) && return SSAValue(x.id)
381381
isa(x, Core.SlotNumber) && return SlotNumber(x.id)
382-
@static if VERSION v"1.10.0-DEV.631"
383-
isa(x, Core.Compiler.TypedSlot) && return SlotNumber(x.id)
384-
else
385-
isa(x, Core.TypedSlot) && return SlotNumber(x.id)
382+
@static if VERSION < v"1.11.0-DEV.337"
383+
@static if VERSION v"1.10.0-DEV.631"
384+
isa(x, Core.Compiler.TypedSlot) && return SlotNumber(x.id)
385+
else
386+
isa(x, Core.TypedSlot) && return SlotNumber(x.id)
387+
end
386388
end
387389
return x
388390
end

0 commit comments

Comments
 (0)