Skip to content

adjust to JuliaLang/julia#50943 #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,12 @@ function replace_coretypes_list!(list::AbstractVector; rev::Bool=false)
else
isa(x, Core.SSAValue) && return SSAValue(x.id)
isa(x, Core.SlotNumber) && return SlotNumber(x.id)
@static if VERSION ≥ v"1.10.0-DEV.631"
isa(x, Core.Compiler.TypedSlot) && return SlotNumber(x.id)
else
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
isa(x, Core.TypedSlot) && return SlotNumber(x.id)
end
end
return x
end
Expand Down