Skip to content

Commit 9ff11fd

Browse files
committed
attain the original code, #39611 is fixed
1 parent 57d5dad commit 9ff11fd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

base/compiler/ssair/inlining.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,12 +1076,9 @@ function analyze_single_call!(ir::IRCode, todo::Vector{Pair{Int, Any}}, idx::Int
10761076
for i in 1:length(infos)
10771077
info = infos[i]
10781078
meth = info.results
1079-
if meth === missing
1079+
if meth === missing || meth.ambig
10801080
# Too many applicable methods
1081-
too_many = true
1082-
break
1083-
elseif meth.ambig
1084-
# there is a (partial?) ambiguity
1081+
# Or there is a (partial?) ambiguity
10851082
too_many = true
10861083
break
10871084
elseif length(meth) == 0

0 commit comments

Comments
 (0)