diff --git a/src/validation.jl b/src/validation.jl index 84438044..2742d6e8 100644 --- a/src/validation.jl +++ b/src/validation.jl @@ -16,7 +16,7 @@ function check_method(@nospecialize(job::CompilerJob)) cache = ci_cache(job) mt = method_table(job) interp = GPUInterpreter(cache, mt, job.source.world) - @static if VERSION ≥ v"1.8-beta2" + @static if v"1.8-beta2" <= VERSION < v"1.9-" || VERSION ≥ v"1.9.0-DEV.190" # https://github.com/JuliaLang/julia/pull/44515 rt = Base.return_types(job.source.f, job.source.tt; interp)[1] else