Skip to content

Commit d7a3dd4

Browse files
committed
fixup
1 parent b4d133d commit d7a3dd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/optimize.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function replace_coretypes!(src; rev::Bool=false)
369369
return src
370370
end
371371

372-
function replace_coretypes_list!(list::AbstractVector; rev::Bool)
372+
function replace_coretypes_list!(list::AbstractVector; rev::Bool=false)
373373
function rep(@nospecialize(x), rev::Bool)
374374
if rev
375375
isa(x, SSAValue) && return Core.SSAValue(x.id)
@@ -379,9 +379,9 @@ function replace_coretypes_list!(list::AbstractVector; rev::Bool)
379379
isa(x, Core.SSAValue) && return SSAValue(x.id)
380380
isa(x, Core.SlotNumber) && return SlotNumber(x.id)
381381
@static if VERSION v"1.10.0-DEV.631"
382-
isa(x, Core.TypedSlot) && return SlotNumber(x.id)
383-
else
384382
isa(x, Core.Compiler.TypedSlot) && return SlotNumber(x.id)
383+
else
384+
isa(x, Core.TypedSlot) && return SlotNumber(x.id)
385385
end
386386
return x
387387
end

0 commit comments

Comments
 (0)