Skip to content

Commit 0c60273

Browse files
committed
SIL: Allow getGenericSignatureWithCapturedEnvironments() on all SILDeclRefs
The main entry point _does_ have a generic signature, it's just empty.
1 parent 1a81cf5 commit 0c60273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/IR/TypeLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4104,7 +4104,7 @@ TypeConverter::getGenericSignatureWithCapturedEnvironments(SILDeclRef c) {
41044104
vd->getDeclContext()->getGenericSignatureOfContext());
41054105
case SILDeclRef::Kind::EntryPoint:
41064106
case SILDeclRef::Kind::AsyncEntryPoint:
4107-
llvm_unreachable("Doesn't have generic signature");
4107+
return GenericSignatureWithCapturedEnvironments();
41084108
}
41094109

41104110
llvm_unreachable("Unhandled SILDeclRefKind in switch.");

0 commit comments

Comments
 (0)