Skip to content

Commit 5922aa8

Browse files
committed
stdlib: always inline the Set/Dictionary's _bucket function
If the Key is a class, then FunctionSignatureOpts cannot convert it to a @guaranteed parameter. Using the new EpilogueARCAnalysis in FunctionSignatureOpts should fix that.
1 parent aecbd63 commit 5922aa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,6 +2804,7 @@ struct _Native${Self}Storage<${TypeParametersDecl}> :
28042804
}
28052805

28062806
@_versioned
2807+
@inline(__always) // For performance reasons.
28072808
internal func _bucket(_ k: Key) -> Int {
28082809
return _squeezeHashValue(k.hashValue, capacity)
28092810
}

0 commit comments

Comments
 (0)