mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SIL: Introduce a 'closure' convention for unapplied invocation functions.
We don't want the machine calling conventions for closure invocation functions to necessarily be tied to the convention for normal thin functions or methods. NFC yet; for now, 'closure' follows the same behavior as the 'method' convention, but as part of partial_apply simplification it will be a requirement that partial_apply takes a @convention(closure) function and a box and produces a @convention(thick) function from them.
This commit is contained in:
@@ -669,7 +669,7 @@ static StringRef omitNeedlessWords(StringRef name,
|
||||
NameRole::Partial, allPropertyNames, scratch);
|
||||
if (shortenedNameWord == newShortenedNameWord &&
|
||||
shortenedNameWord.back() == 'e') {
|
||||
shortenedNameWord.drop_back();
|
||||
(void)shortenedNameWord.drop_back();
|
||||
newShortenedNameWord =
|
||||
omitNeedlessWords(shortenedNameWord, typeName.CollectionElement,
|
||||
NameRole::Partial, allPropertyNames, scratch);
|
||||
|
||||
Reference in New Issue
Block a user