Skip to content

Commit 7778262

Browse files
authored
Merge pull request #12580 from davezarzycki/nfc_sil_comment_fix
[SIL] Gardening: Change stale comment into a useful "NOTE:"
2 parents 4b9d5d5 + b8530a7 commit 7778262

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SIL/SILFunctionType.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,8 @@ static CanSILFunctionType getSILFunctionType(SILModule &M,
950950

951951
bool pseudogeneric = (constant ? isPseudogeneric(*constant) : false);
952952

953-
// Always strip the auto-closure and no-escape bit.
953+
// NOTE: SILFunctionType::ExtInfo doesn't track everything that
954+
// AnyFunctionType::ExtInfo tracks. For example: 'throws' or 'auto-closure'
954955
auto silExtInfo = SILFunctionType::ExtInfo()
955956
.withRepresentation(extInfo.getSILRepresentation())
956957
.withIsPseudogeneric(pseudogeneric)

0 commit comments

Comments
 (0)