We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44ed4f commit 98c47acCopy full SHA for 98c47ac
src/abstractinterpret/typeinfer.jl
@@ -150,6 +150,10 @@ end
150
# global
151
# ------
152
153
+@static if VERSION ≥ v"1.11.0-DEV.1552"
154
+CC.cache_owner(analyzer::AbstractAnalyzer) = AnalysisCache(analyzer)
155
+end
156
+
157
function CC.code_cache(analyzer::AbstractAnalyzer)
158
view = AbstractAnalyzerView(analyzer)
159
worlds = WorldRange(get_inference_world(analyzer))
@@ -225,7 +229,9 @@ end
225
229
226
230
function CC.setindex!(wvc::WorldView{<:AbstractAnalyzerView}, codeinst::CodeInstance, mi::MethodInstance)
227
231
analysis_cache = AnalysisCache(wvc)
232
+ @static if VERSION < v"1.11.0-DEV.1552"
228
233
add_jet_callback!(mi, analysis_cache)
234
+ end
235
return analysis_cache[mi] = codeinst
236
end
237
0 commit comments