mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #39473 from apple/rebranch
Update swift:main to support llvm-project:stable/20210726 changes (Rebranch merge)
This commit is contained in:
@@ -3534,7 +3534,7 @@ DeclName MissingMemberFailure::findCorrectEnumCaseName(
|
||||
auto candidate =
|
||||
corrections.getUniqueCandidateMatching([&](ValueDecl *candidate) {
|
||||
return (isa<EnumElementDecl>(candidate) &&
|
||||
candidate->getBaseIdentifier().str().equals_lower(
|
||||
candidate->getBaseIdentifier().str().equals_insensitive(
|
||||
memberName.getBaseIdentifier().str()));
|
||||
});
|
||||
return (candidate ? candidate->getName() : DeclName());
|
||||
|
||||
Reference in New Issue
Block a user