Skip to content

Commit da96278

Browse files
Test Shuhei's patch to 51403
See JuliaLang#51612 (comment)
1 parent 5a478db commit da96278

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/compiler/abstractinterpretation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,12 +1878,12 @@ function abstract_call_unionall(interp::AbstractInterpreter, argtypes::Vector{An
18781878
end
18791879
a2 = argtypes[2]
18801880
a3 = unwrapva(argtypes[3])
1881-
nothrow = false
1881+
canconst = nothrow = false
18821882
elseif na == 3
18831883
a2 = argtypes[2]
18841884
a3 = argtypes[3]
18851885
= (typeinf_lattice(interp))
1886-
nothrow = a2 ᵢ TypeVar && (a3 ᵢ Type || a3 ᵢ TypeVar)
1886+
canconst = nothrow = a2 ᵢ TypeVar && (a3 ᵢ Type || a3 ᵢ TypeVar)
18871887
else
18881888
return CallMeta(Bottom, EFFECTS_THROWS, NoCallInfo())
18891889
end
@@ -1894,7 +1894,7 @@ function abstract_call_unionall(interp::AbstractInterpreter, argtypes::Vector{An
18941894
body = a3.parameters[1]
18951895
canconst = false
18961896
else
1897-
return CallMeta(Any, Effects(EFFECTS_TOTAL; nothrow), NoCallInfo())
1897+
return CallMeta(Any, EFFECTS_THROWS, call.info)
18981898
end
18991899
if !(isa(body, Type) || isa(body, TypeVar))
19001900
return CallMeta(Any, EFFECTS_THROWS, NoCallInfo())

0 commit comments

Comments
 (0)