Skip to content

Commit 923aeac

Browse files
committed
[Distributed] always emit the distributed thunk
1 parent 49b33bb commit 923aeac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILGen/SILGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,8 +1299,7 @@ void SILGenModule::emitAbstractFuncDecl(AbstractFunctionDecl *AFD) {
12991299

13001300
if (AFD->isDistributed()) {
13011301
auto thunk = SILDeclRef(AFD).asDistributed();
1302-
if (!hasFunction(thunk))
1303-
emitDistributedThunk(thunk);
1302+
emitDistributedThunk(thunk);
13041303
}
13051304
}
13061305

0 commit comments

Comments
 (0)