Skip to content

Commit 5d6a910

Browse files
authored
inference: ignore badly behaving generated functions (#36115)
fix #36088
1 parent a1b6d7d commit 5d6a910

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)