Skip to content

Commit 2beda67

Browse files
vtjnashsimeonschaub
authored andcommitted
inference: ignore badly behaving generated functions (JuliaLang#36115)
fix JuliaLang#36088
1 parent 511051c commit 2beda67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/compiler/abstractinterpretation.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ function abstract_call_method_with_const_args(interp::AbstractInterpreter, @nosp
263263
if inf_result === nothing
264264
inf_result = InferenceResult(mi, argtypes)
265265
frame = InferenceState(inf_result, #=cache=#false, interp)
266+
frame === nothing && return Any # this is probably a bad generated function (unsound), but just ignore it
266267
frame.limited = true
267268
frame.parent = sv
268269
push!(inf_cache, inf_result)

0 commit comments

Comments
 (0)