mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
FunctionPassContext: support setting arbitrary function type representations when creating specialized functions
This commit is contained in:
@@ -553,7 +553,7 @@ private struct PackExplodedFunction {
|
||||
withParams: newParameters,
|
||||
withResults: newResults,
|
||||
// If a method has a dynamic self parameter, it cannot be converted into a thin function (non-method).
|
||||
makeThin: !original.mayBindDynamicSelf)
|
||||
withRepresentation: original.mayBindDynamicSelf ? nil : .thin)
|
||||
|
||||
self.buildSpecializedFunction(context)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user