Skip to content

Commit 07edb04

Browse files
vtjnashKristofferC
authored andcommitted
inference: remove dead check for NOT_FOUND
Missed in dcc0696 cleanup (cherry picked from commit d1fc03d)
1 parent 3e44b95 commit 07edb04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/compiler/typelattice.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ function ⊑(@nospecialize(a), @nospecialize(b))
118118
end
119119
isa(a, MaybeUndef) && (a = a.typ)
120120
isa(b, MaybeUndef) && (b = b.typ)
121-
(a === NOT_FOUND || b === Any) && return true
122-
(a === Any || b === NOT_FOUND) && return false
121+
b === Any && return true
122+
a === Any && return false
123123
a === Union{} && return true
124124
b === Union{} && return false
125125
if isa(a, Conditional)

0 commit comments

Comments
 (0)