Skip to content

Commit

Permalink
inference: ignore badly behaving generated functions (#36115)
Browse files Browse the repository at this point in the history
fix #36088

(cherry picked from commit 5d6a910)
  • Loading branch information
vtjnash authored and KristofferC committed Jun 4, 2020
1 parent 60bab00 commit 2f8eb20
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 @@ -259,6 +259,7 @@ function abstract_call_method_with_const_args(@nospecialize(rettype), @nospecial
if inf_result === nothing
inf_result = InferenceResult(mi, argtypes)
frame = InferenceState(inf_result, #=cache=#false, sv.params)
frame === nothing && return Any # this is probably a bad generated function (unsound), but just ignore it
frame.limited = true
frame.parent = sv
push!(sv.params.cache, inf_result)
Expand Down

0 comments on commit 2f8eb20

Please sign in to comment.