diff --git a/base/compiler/abstractinterpretation.jl b/base/compiler/abstractinterpretation.jl index 36cbbf779c3ef2..0e28ac8d18c893 100644 --- a/base/compiler/abstractinterpretation.jl +++ b/base/compiler/abstractinterpretation.jl @@ -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