[NFC] Audit some DeclName➡️DeclNameRef conversions

Adds comments explaining why these conversions aren’t lossy.
This commit is contained in:
Becca Royal-Gordon
2025-05-14 14:18:45 -07:00
parent 64d8b70942
commit e662993a08
6 changed files with 33 additions and 18 deletions

View File

@@ -8627,6 +8627,9 @@ ConstraintSystem::simplifyConstructionConstraint(
// variable T. T2 is the result type provided via the construction
// constraint itself.
addValueMemberConstraint(MetatypeType::get(valueType, getASTContext()),
// OK: simplifyConstructionConstraint() is only used
// for `T(...)` init calls, not `T.init(...)` calls,
// so there's no module selector on `init`.
DeclNameRef::createConstructor(),
memberType,
useDC, functionRefInfo,