Skip to content

Commit

Permalink
inference: ignore badly behaving generated functions (JuliaLang#36115)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored and simeonschaub committed Aug 11, 2020
1 parent 511051c commit 2beda67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/compiler/abstractinterpretation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ function abstract_call_method_with_const_args(interp::AbstractInterpreter, @nosp
if inf_result === nothing
inf_result = InferenceResult(mi, argtypes)
frame = InferenceState(inf_result, #=cache=#false, interp)
frame === nothing && return Any # this is probably a bad generated function (unsound), but just ignore it
frame.limited = true
frame.parent = sv
push!(inf_cache, inf_result)
Expand Down

0 comments on commit 2beda67

Please sign in to comment.