FunctionPassContext: support setting arbitrary function type representations when creating specialized functions

This commit is contained in:
Erik Eckstein
2025-11-25 14:16:45 +01:00
parent 4920ace11e
commit ab2345a2ed
5 changed files with 9 additions and 10 deletions

View File

@@ -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)
}