Skip to content

Commit d14878a

Browse files
committed
1 parent 893a662 commit d14878a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/validation.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ function check_method(@nospecialize(job::CompilerJob))
1616
cache = ci_cache(job)
1717
mt = method_table(job)
1818
interp = GPUInterpreter(cache, mt, job.source.world)
19-
rt = Base.return_types(job.source.f, job.source.tt, interp)[1]
19+
@static if VERSION v"1.9.0-DEV.190"
20+
# https://github.com/JuliaLang/julia/pull/44515
21+
rt = Base.return_types(job.source.f, job.source.tt; interp)[1]
22+
else
23+
rt = Base.return_types(job.source.f, job.source.tt, interp)[1]
24+
end
2025
if rt != Nothing
2126
throw(KernelError(job, "kernel returns a value of type `$rt`",
2227
"""Make sure your kernel function ends in `return`, `return nothing` or `nothing`.

0 commit comments

Comments
 (0)