Skip to content

Commit 90f6f22

Browse files
committed
Improve type stability of platforms_match(::AbstractPlatform, ::AbstractPlatform) (JuliaLang#46547)
This improvement prevents invalidations in binaryplatforms.jl when loading Static.jl.
1 parent afb6c60 commit 90f6f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/binaryplatforms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ function platforms_match(a::AbstractPlatform, b::AbstractPlatform)
10271027

10281028
# Call the comparator, passing in which objects requested this comparison (one, the other, or both)
10291029
# For some comparators this doesn't matter, but for non-symmetrical comparisons, it does.
1030-
if !comparator(ak, bk, a_comp == comparator, b_comp == comparator)
1030+
if !(comparator(ak, bk, a_comp == comparator, b_comp == comparator)::Bool)
10311031
return false
10321032
end
10331033
end

0 commit comments

Comments
 (0)