Skip to content

Commit

Permalink
minor fixes on test/precompile.jl (#53476)
Browse files Browse the repository at this point in the history
These changes are driven-by fixes I found during investigating into a
more complex issue related to precompilation with external abs int.
  • Loading branch information
aviatesk committed Feb 27, 2024
1 parent ba189d8 commit 0f0f8eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,6 @@ let newinterp_path = abspath("compiler/newinterp.jl")
import SimpleModule: basic_caller, basic_callee

module Custom
const CC = Core.Compiler
include("$($newinterp_path)")
@newinterp PrecompileInterpreter
end
Expand Down Expand Up @@ -1822,7 +1821,7 @@ let newinterp_path = abspath("compiler/newinterp.jl")
using CustomAbstractInterpreterCaching2
cache_owner = Core.Compiler.cache_owner(
CustomAbstractInterpreterCaching2.Custom.PrecompileInterpreter())
let m = only(methods(CustomAbstractInterpreterCaching.basic_callee))
let m = only(methods(CustomAbstractInterpreterCaching2.basic_callee))
mi = only(Base.specializations(m))
ci = mi.cache
@test isdefined(ci, :next)
Expand Down

0 comments on commit 0f0f8eb

Please sign in to comment.