Skip to content

Commit 4fca872

Browse files
committed
Make assertion less expensive.
1 parent 6da1d33 commit 4fca872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jlgen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@ function compile_method_instance(@nospecialize(job::CompilerJob))
592592
cache = CC.code_cache(interp)
593593
if ci_cache_lookup(cache, job.source, job.world, job.world) === nothing
594594
ci_cache_populate(interp, cache, job.source, job.world, job.world)
595+
@assert ci_cache_lookup(cache, job.source, job.world, job.world) !== nothing
595596
end
596-
@assert ci_cache_lookup(cache, job.source, job.world, job.world) !== nothing
597597

598598
# create a callback to look-up function in our cache,
599599
# and keep track of the method instances we needed.

0 commit comments

Comments
 (0)