Skip to content

Commit bf51c4b

Browse files
committed
1 parent 80263b4 commit bf51c4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jlgen.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ Compile the GPUCompiler job. In particular this will run inference using the for
591591
abstract interpreter.
592592
"""
593593
function Base.precompile(@nospecialize(job::CompilerJob))
594-
if job.source.def.primary_world > job.world || job.world > job.source.def.deleted_world
595-
error("Cannot compile $(job.source) for world $(job.world); method is only valid in worlds $(job.source.def.primary_world) to $(job.source.def.deleted_world)")
594+
if job.source.def.primary_world > job.world
595+
error("Cannot compile $(job.source) for world $(job.world); method is only valid from world $(job.source.def.primary_world) onwards")
596596
end
597597

598598
# populate the cache
@@ -603,8 +603,8 @@ function Base.precompile(@nospecialize(job::CompilerJob))
603603
end
604604

605605
function compile_method_instance(@nospecialize(job::CompilerJob))
606-
if job.source.def.primary_world > job.world || job.world > job.source.def.deleted_world
607-
error("Cannot compile $(job.source) for world $(job.world); method is only valid in worlds $(job.source.def.primary_world) to $(job.source.def.deleted_world)")
606+
if job.source.def.primary_world > job.world
607+
error("Cannot compile $(job.source) for world $(job.world); method is only valid from world $(job.source.def.primary_world) onwards")
608608
end
609609

610610
# populate the cache

0 commit comments

Comments
 (0)