Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Remove cached keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Feb 15, 2018
1 parent f29c625 commit 62d9a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/jit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ function irgen(@nospecialize(f), @nospecialize(tt))
ref = convert(LLVM.API.LLVMModuleRef, ref)
push!(dependencies, LLVM.Module(ref))
end
params = Base.CodegenParams(cached=false,
track_allocations=false,
params = Base.CodegenParams(track_allocations=false,
code_coverage=false,
static_alloc=false,
prefer_specsig=true,
Expand Down
4 changes: 2 additions & 2 deletions test/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ end
if VERSION < v"0.7.0-DEV.1669"
hook_module_activation(ref::Ptr{Cvoid}) = nothing
hooks = Base.CodegenHooks(module_activation=hook_module_activation)
params = Base.CodegenParams(cached=false, runtime=false, hooks=hooks)
params = Base.CodegenParams(runtime=false, hooks=hooks)
_dump_function(post17057_parent, Tuple{Ptr{Int64}},
#=native=#false, #=wrapper=#false, #=strip=#false,
#=dump_module=#true, #=syntax=#:att, #=optimize=#false,
params)
end

# bug 2: default module activation segfaulted on NULL child function if cached=false
params = Base.CodegenParams(cached=false)
params = Base.CodegenParams()
_dump_function(post17057_parent, Tuple{Ptr{Int64}},
#=native=#false, #=wrapper=#false, #=strip=#false,
#=dump_module=#true, #=syntax=#:att, #=optimize=#false,
Expand Down

0 comments on commit 62d9a48

Please sign in to comment.