Skip to content

Commit

Permalink
Make sure that the information in compiled is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jul 16, 2024
1 parent 3c80a5d commit d2d7a73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/irgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ function irgen(@nospecialize(job::CompilerJob))
compiled[job.source] =
(; compiled[job.source].ci, func, specfunc)

for mi in keys(compiled)
mi == job.source && continue
ci, func, specfunc = compiled[mi]
compiled[mi] = (; ci, func=safe_name(func), specfunc=safe_name(specfunc))
end

# minimal required optimization
@timeit_debug to "rewrite" begin
if job.config.kernel && needs_byval(job)
Expand Down

0 comments on commit d2d7a73

Please sign in to comment.