Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Aug 25, 2023
1 parent 910cb6f commit 15bbbb8
Showing 1 changed file with 6 additions and 4 deletions.
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"

Check warning on line 383 in src/optimize.jl

View check run for this annotation

Codecov / codecov/patch

src/optimize.jl#L382-L383

Added lines #L382 - L383 were not covered by tests
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

0 comments on commit 15bbbb8

Please sign in to comment.