Skip to content

Commit 12d6038

Browse files
committed
isafication
1 parent 1391c3f commit 12d6038

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/UnqualifiedLookup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ class UnqualifiedLookupFactory {
161161
// Classify this declaration.
162162
// Types are formally members of the metatype.
163163
DeclContext *whereValueIsMember(const ValueDecl *const member) const {
164-
return dyn_cast<TypeDecl>(member) ? whereTypesAreMembers
165-
: whereNonTypesAreMembers;
164+
return isa<TypeDecl>(member) ? whereTypesAreMembers
165+
: whereNonTypesAreMembers;
166166
}
167167
void addToResults(const DeclName &Name, bool isCascadingUse,
168168
NLOptions baseNLOptions, DeclContext *contextForLookup,
@@ -696,7 +696,7 @@ UnqualifiedLookupFactory::lookupInOneDeclContext(
696696
auto placesToSearch = std::move(r.getValue().placesToSearch);
697697
auto isCascadingUse = r.getValue().isCascadingUse;
698698

699-
if (!dyn_cast<DefaultArgumentInitializer>(dc) &&
699+
if (!isa<DefaultArgumentInitializer>(dc) &&
700700
addGenericParametersHereAndInEnclosingScopes(lookupContextForThisDecl))
701701
return None;
702702
if (placesToSearch.hasValue() && !placesToSearch.getValue().empty()) {

0 commit comments

Comments
 (0)