From 4fca87299b2539fcffd5baeb459343f07d8c8a90 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 9 Apr 2024 12:42:43 +0200 Subject: [PATCH] Make assertion less expensive. --- src/jlgen.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jlgen.jl b/src/jlgen.jl index acc7f2a4..518924b2 100644 --- a/src/jlgen.jl +++ b/src/jlgen.jl @@ -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.