Skip to content

Commit 10c9cb5

Browse files
authored
Merge pull request swiftlang#30485 from slavapestov/silgen-cleanup-sr-75
Remove SILGen support code for curry thunks
2 parents 08f7028 + 052309e commit 10c9cb5

File tree

8 files changed

+237
-654
lines changed

8 files changed

+237
-654
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ Swift Next
4949

5050
* [SR-75][]:
5151

52-
Unapplied references to protocol methods methods are now supported. Previously this
52+
Unapplied references to protocol methods are now supported. Previously this
5353
only worked for methods defined in structs, enums and classes.
5454

5555
```swift
5656
protocol Cat {
5757
func play(catToy: Toy)
5858
}
5959

60-
let fn = Cat.play
60+
let fn = Cat.play(catToy:)
6161
fn(myCat)(myToy)
6262
```
6363

lib/SILGen/SILGen.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,6 @@ class LLVM_LIBRARY_VISIBILITY SILGenModule : public ASTVisitor<SILGenModule> {
245245
/// Emits default argument generators for the given parameter list.
246246
void emitDefaultArgGenerators(SILDeclRef::Loc decl,
247247
ParameterList *paramList);
248-
249-
/// Emits the curry thunk between two uncurry levels of a function.
250-
void emitCurryThunk(SILDeclRef thunk);
251248

252249
/// Emits a thunk from a foreign function to the native Swift convention.
253250
void emitForeignToNativeThunk(SILDeclRef thunk);

0 commit comments

Comments
 (0)