Skip to content

Commit 2c865b6

Browse files
authored
Add comment explaining why we skip
1 parent 3fa92f4 commit 2c865b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRSymbolVisitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class IRSymbolVisitorImpl : public SILSymbolVisitor {
104104
void addDispatchThunk(SILDeclRef declRef) override {
105105
auto entity = LinkEntity::forDispatchThunk(declRef);
106106

107-
// TODO: explain why
107+
// distributed thunks don't need dispatch thunks.
108108
if (declRef.isDistributedThunk()) {
109109
auto afd = declRef.getAbstractFunctionDecl();
110110
if (afd && isa<ProtocolDecl>(afd->getDeclContext())) {

0 commit comments

Comments
 (0)