From c8d1ef799d780e54f296adf16d3ee4fac0f53adc Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:00:32 +0900 Subject: [PATCH] adjust to JuliaLang/julia#50943 (#585) --- src/optimize.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/optimize.jl b/src/optimize.jl index 872ad50e..30bf96e4 100644 --- a/src/optimize.jl +++ b/src/optimize.jl @@ -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