We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93dedf commit c8d1ef7Copy full SHA for c8d1ef7
src/optimize.jl
@@ -379,10 +379,12 @@ function replace_coretypes_list!(list::AbstractVector; rev::Bool=false)
379
else
380
isa(x, Core.SSAValue) && return SSAValue(x.id)
381
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)
+ @static if VERSION < v"1.11.0-DEV.337"
+ @static if VERSION ≥ v"1.10.0-DEV.631"
+ isa(x, Core.Compiler.TypedSlot) && return SlotNumber(x.id)
+ else
386
+ isa(x, Core.TypedSlot) && return SlotNumber(x.id)
387
+ end
388
end
389
return x
390
0 commit comments