Skip to content

Commit

Permalink
partially address #29293
Browse files Browse the repository at this point in the history
(cherry picked from commit 92ab600)
  • Loading branch information
vtjnash authored and KristofferC committed Feb 20, 2020
1 parent 05d298b commit 542e394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/abstractinterpretation.jl
Expand Up @@ -330,7 +330,7 @@ function abstract_call_method(method::Method, @nospecialize(sig), sparams::Simpl
end
infstate = sv
topmost = topmost::InferenceState
while !(infstate.parent === topmost.parent)
while !(infstate === topmost.parent)
if call_result_unused(infstate)
# If we won't propagate the result any further (since it's typically unused),
# it's OK that we keep and cache the "limited" result in the parents
Expand Down

0 comments on commit 542e394

Please sign in to comment.