diff --git a/examples/find_unstable_api.jl b/examples/find_unstable_api.jl index 2e331c1f0..baaa346df 100644 --- a/examples/find_unstable_api.jl +++ b/examples/find_unstable_api.jl @@ -189,7 +189,7 @@ function UnstableAPIAnalyzer(world::UInt = Base.get_world_counter(); state = AnalyzerState(world; jetconfigs...) ## use a globalized code cache (, which is separated by `InferenceParams` configurations) cache_key = JET.compute_hash(state.inf_params) - analysis_cache = get!(()->AnalysisCache(), UNSTABLE_API_ANALYZER_CACHE, cache_key) + analysis_cache = get!(AnalysisCache, UNSTABLE_API_ANALYZER_CACHE, cache_key) return UnstableAPIAnalyzer(state, analysis_cache, is_target_module) end function report_unstable_api(args...; jetconfigs...) diff --git a/src/analyzers/jetanalyzer.jl b/src/analyzers/jetanalyzer.jl index 344f6327f..6f1bf01e6 100644 --- a/src/analyzers/jetanalyzer.jl +++ b/src/analyzers/jetanalyzer.jl @@ -51,7 +51,7 @@ struct JETAnalyzer{RP<:ReportPass} <: AbstractAnalyzer analysis_cache = AnalysisCache() else cache_key = compute_hash(state.inf_params, report_pass) - analysis_cache = get!(()->AnalysisCache(), JET_ANALYZER_CACHE, cache_key) + analysis_cache = get!(AnalysisCache, JET_ANALYZER_CACHE, cache_key) end return JETAnalyzer(state, analysis_cache, report_pass) end diff --git a/src/analyzers/optanalyzer.jl b/src/analyzers/optanalyzer.jl index c3726b901..f91676c4b 100644 --- a/src/analyzers/optanalyzer.jl +++ b/src/analyzers/optanalyzer.jl @@ -189,7 +189,7 @@ struct OptAnalyzer{RP<:ReportPass,FF} <: AbstractAnalyzer cache_key = compute_hash(state.inf_params, state.opt_params, report_pass, skip_noncompileable_calls, skip_unoptimized_throw_blocks) cache_key = @invoke hash(function_filter::Any, cache_key::UInt) # HACK avoid dynamic dispatch - analysis_cache = get!(()->AnalysisCache(), OPT_ANALYZER_CACHE, cache_key) + analysis_cache = get!(AnalysisCache, OPT_ANALYZER_CACHE, cache_key) end return new{RP,FF}(state, analysis_cache,