Skip to content

Commit 6e18851

Browse files
committed
Sema: getBaseIdentifier() => isSimpleName() in synthesizeCodingKeysIfNeededForUnqualifiedLookup()
1 parent b0869fa commit 6e18851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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;

0 commit comments

Comments
 (0)