mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #27127 from DougGregor/dynamic-member-lookup-iwb-crash
[Type checker] Fix a crash triggered from index-while-building.
This commit is contained in:
@@ -4713,7 +4713,8 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
|
||||
// as representing "dynamic lookup" unless it's a direct call
|
||||
// to such subscript (in that case label is expected to match).
|
||||
if (auto *subscript = dyn_cast<SubscriptDecl>(cand)) {
|
||||
if (::hasDynamicMemberLookupAttribute(instanceTy,
|
||||
if (memberLocator &&
|
||||
::hasDynamicMemberLookupAttribute(instanceTy,
|
||||
DynamicMemberLookupCache) &&
|
||||
isValidKeyPathDynamicMemberLookup(subscript, TC)) {
|
||||
auto info = getArgumentInfo(memberLocator);
|
||||
|
||||
Reference in New Issue
Block a user