Skip to content

Commit db65a34

Browse files
committed
Sema: getBaseIdentifier() => isSimpleName() in synthesizeCodingKeysIfNeededForUnqualifiedLookup()
1 parent 9f0c778 commit db65a34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/TypeCheckNameLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ convertToUnqualifiedLookupOptions(NameLookupOptions options) {
266266
static void synthesizeCodingKeysIfNeededForUnqualifiedLookup(ASTContext &ctx,
267267
DeclContext *dc,
268268
DeclNameRef name) {
269-
if (name.getBaseIdentifier() != ctx.Id_CodingKeys)
269+
if (!name.isSimpleName(ctx.Id_CodingKeys))
270270
return;
271271

272272
for (auto typeCtx = dc->getInnermostTypeContext(); typeCtx != nullptr;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// {"signature":"(anonymous namespace)::ABIDependencyEvaluator::computeABIDependenciesForModule(swift::ModuleDecl*)"}
2-
// RUN: not --crash %target-swift-frontend -typecheck %s
2+
// RUN: not %target-swift-frontend -typecheck %s
33
switch {
44
case init

0 commit comments

Comments
 (0)