Skip to content

Commit

Permalink
Make assertion less expensive.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 9, 2024
1 parent 6da1d33 commit 4fca872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ function compile_method_instance(@nospecialize(job::CompilerJob))
cache = CC.code_cache(interp)
if ci_cache_lookup(cache, job.source, job.world, job.world) === nothing
ci_cache_populate(interp, cache, job.source, job.world, job.world)
@assert ci_cache_lookup(cache, job.source, job.world, job.world) !== nothing
end
@assert ci_cache_lookup(cache, job.source, job.world, job.world) !== nothing

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

0 comments on commit 4fca872

Please sign in to comment.