Skip to content

Commit

Permalink
interpreter: fix pref regression from #29795 (#29873)
Browse files Browse the repository at this point in the history
fix #29872

(cherry picked from commit e1fbd0a)
  • Loading branch information
vtjnash authored and KristofferC committed Nov 28, 2018
1 parent 58d22f0 commit 6682281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/abstractinterpretation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function abstract_call_method(method::Method, @nospecialize(sig), sparams::Simpl
if infstate.linfo.specTypes == sig
# avoid widening when detecting self-recursion
# TODO: merge call cycle and return right away
if call_result_unused(infstate)
if call_result_unused(sv)
# since we don't use the result (typically),
# we have a self-cycle in the call-graph, but not in the inference graph (typically):
# break this edge now (before we record it) by returning early
Expand Down

0 comments on commit 6682281

Please sign in to comment.